From 57ab2d9324bb978e2dd6ced05e72b13f94a0b4a6 Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Thu, 21 Nov 2024 09:00:40 +0100 Subject: [PATCH] is this it? --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e596841..5daef9f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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