From cd65e952f88d73f64ca169ea9ec30c51fc4a82c9 Mon Sep 17 00:00:00 2001 From: buttercat1791 Date: Sat, 1 Mar 2025 20:12:08 -0600 Subject: [PATCH] Correctly configure environment variables for build --- Dockerfile.dev | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Dockerfile.dev b/Dockerfile.dev index dd5e013..ea56d3f 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -18,19 +18,23 @@ RUN cd /temp/dev && bun install # Copy node_modules from temp directory. # Then copy all (non-ignored) project files into the image. FROM base AS prerelease +ENV NODE_ENV=development +ENV ALEX_HOST=0.0.0.0 +ENV ALEX_PORT=3040 +ENV ALEX_ORIGIN=https://next-alexandria.gitcitadel.eu COPY --from=install /temp/dev/node_modules node_modules COPY . . # Run tests and build. -ENV NODE_ENV=development -ENV ALEX_HOST=127.0.0.1 -ENV ALEX_PORT=3040 -ENV ALEX_ORIGIN=https://next-alexandria.gitcitadel.eu # RUN bun test # Uncomment when tests are ready. RUN bun run build # Copy production dependencies and source code into final image. FROM base AS release +ENV NODE_ENV=development +ENV ALEX_HOST=0.0.0.0 +ENV ALEX_PORT=3040 +ENV ALEX_ORIGIN=https://next-alexandria.gitcitadel.eu COPY --from=prerelease /usr/src/app/build . # Run the app.