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