is this it?

This commit is contained in:
Chris Kruining 2024-11-21 09:00:40 +01:00
parent 1aff45ddaa
commit 57ab2d9324
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2

View file

@ -13,13 +13,13 @@ 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
RUN bun test
RUN chmod +x node_modules/.bin/*
RUN bun run build
RUN echo "SESSION_SECRET=$(head -c 64 /dev/random | base64)" > .env
FROM base AS release
COPY --from=install /temp/prod/node_modules node_modules