fix(docker): fix missing ENV variables & files
This commit is contained in:
parent
0c5280e05d
commit
68b649cff8
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue