Fly launch Remix creates npm Docker instead of yarn

I am using yarn but fly launch creates npm type Docker:

# base node image
FROM node:16-bullseye-slim as base

# Install openssl for Prisma
RUN apt-get update && apt-get install -y openssl

# Install all node_modules, including dev dependencies
FROM base as deps

RUN mkdir /app
WORKDIR /app

ADD package.json package-lock.json ./
RUN npm install --production=false

# Setup production node_modules
FROM base as production-deps

RUN mkdir /app
WORKDIR /app

COPY --from=deps /app/node_modules /app/node_modules
ADD package.json package-lock.json ./
RUN npm prune --production

# Build the app
FROM base as build

ENV NODE_ENV=production

RUN mkdir /app
WORKDIR /app

COPY --from=deps /app/node_modules /app/node_modules

# If we're using Prisma, uncomment to cache the prisma schema
# ADD prisma .
# RUN npx prisma generate

ADD . .
RUN npm run build

# Finally, build the production image with minimal footprint
FROM base

ENV NODE_ENV=production

RUN mkdir /app
WORKDIR /app

COPY --from=production-deps /app/node_modules /app/node_modules

# Uncomment if using Prisma
# COPY --from=build /app/node_modules/.prisma /app/node_modules/.prisma

COPY --from=build /app/build /app/build
COPY --from=build /app/public /app/public
ADD . .

CMD ["npm", "run", "start"]

launch deploy fails with error:

 => [internal] load remote build context                                                                           0.0s
 => copy /context /                                                                                                0.0s
 => [internal] load metadata for docker.io/library/node:16-bullseye-slim                                           0.3s
 => [base 1/2] FROM docker.io/library/node:16-bullseye-slim@sha256:fab24688ec5c8cb3db76ce89f32ae9ab979bf12912789d  0.0s
 => => resolve docker.io/library/node:16-bullseye-slim@sha256:fab24688ec5c8cb3db76ce89f32ae9ab979bf12912789db28dd  0.0s
 => CACHED [base 2/2] RUN apt-get update && apt-get install -y openssl                                             0.0s
 => CACHED [deps 1/4] RUN mkdir /app                                                                               0.0s
 => CACHED [deps 2/4] WORKDIR /app                                                                                 0.0s
 => ERROR [deps 3/4] ADD package.json package-lock.json ./                                                         0.0s
 => CACHED [deps 4/4] RUN npm install --production=false                                                           0.0s
 => CACHED [production-deps 3/5] COPY --from=deps /app/node_modules /app/node_modules                              0.0s
 => ERROR [production-deps 4/5] ADD package.json package-lock.json ./

How can I use yarn?