fix(docker): fix missing ENV variables & files

This commit is contained in:
Damien Laureaux 2024-11-14 16:59:22 +01:00
parent 7583e3c4ef
commit f7b13f3456
No known key found for this signature in database
GPG key ID: 3802EADA1C1C604D
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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