fix dockerfile

This commit is contained in:
Chris Kruining 2025-07-21 15:41:42 +02:00
parent e59c210ef4
commit 12e3cf2f85
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2

View file

@ -4,16 +4,17 @@ WORKDIR /usr/src/app
FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json bun.lock /temp/dev
COPY patches/ /temp/dev/patches/
RUN cd /temp/dev && bun install --frozen-lockfile
RUN mkdir -p /temp/prod
COPY package.json bun.lock /temp/prod/
COPY patches/ /temp/prod/patches/
RUN cd /temp/prod && bun install --frozen-lockfile --production
FROM base AS prerelease
COPY --from=install /temp/dev/node_modules node_modules
COPY . .
# RUN echo "SESSION_SECRET=$(head -c 64 /dev/random | base64)" > .env
ENV NODE_ENV=production
ENV SERVER_PRESET=bun