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