fix the inline dockerfile to use cmd instead of run, and update port

This commit is contained in:
2025-03-26 15:45:26 -07:00
parent 2dd91c9885
commit f2a464d52d

View File

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