mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
fix the inline dockerfile to use cmd instead of run, and update port
This commit is contained in:
@@ -6,12 +6,12 @@ services:
|
||||
FROM node:20-alpine
|
||||
WORKDIR /usr/src/app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
RUN npm install --include=dev
|
||||
COPY . .
|
||||
EXPOSE 3000
|
||||
RUN npm run start:dev
|
||||
EXPOSE 4000
|
||||
CMD ["npm", "run", "start:dev"]
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "4000:4000"
|
||||
env_file: .env
|
||||
depends_on:
|
||||
- redis
|
||||
|
||||
Reference in New Issue
Block a user