mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 17:00:30 +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
|
FROM node:20-alpine
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm install
|
RUN npm install --include=dev
|
||||||
COPY . .
|
COPY . .
|
||||||
EXPOSE 3000
|
EXPOSE 4000
|
||||||
RUN npm run start:dev
|
CMD ["npm", "run", "start:dev"]
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "4000:4000"
|
||||||
env_file: .env
|
env_file: .env
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
|
|||||||
Reference in New Issue
Block a user