From f7b13f3456ac07ae760460ee1e0e76618365ebb0 Mon Sep 17 00:00:00 2001 From: Damien Laureaux Date: Thu, 14 Nov 2024 16:59:22 +0100 Subject: [PATCH] fix(docker): fix missing ENV variables & files --- app.dockerfile | 3 +++ backend.dockerfile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app.dockerfile b/app.dockerfile index 6878528..8c425f3 100644 --- a/app.dockerfile +++ b/app.dockerfile @@ -21,6 +21,9 @@ RUN yarn install --frozen-lockfile && yarn build FROM node:22-alpine +ENV NEXT_PUBLIC_WS_URL=ws://localhost:3001 +ENV NEXT_PUBLIC_API_URL=http://localhost:3001/api + WORKDIR /app # Copy built assets from the builder stage diff --git a/backend.dockerfile b/backend.dockerfile index 9ac1c4c..deed1de 100644 --- a/backend.dockerfile +++ b/backend.dockerfile @@ -29,9 +29,9 @@ COPY --chown=node:node --from=builder /app/dist ./dist COPY --chown=node:node --from=builder /app/node_modules ./node_modules # Copy the rest of the application code +COPY --chown=node:node src ./src COPY --chown=node:node drizzle.config.ts ./ COPY --chown=node:node tsconfig.json ./ -COPY --chown=node:node src/db/schema.ts ./src/db/schema.ts COPY --chown=node:node package.json ./package.json # Create data directory & set permissions to node user