simplify the dockerfile and move it to a separate file

This commit is contained in:
2025-03-26 15:50:47 -07:00
parent f2a464d52d
commit 66642e7050
2 changed files with 6 additions and 10 deletions

View File

@@ -1,15 +1,7 @@
services:
dev:
build:
context: .
dockerfile_inline: |
FROM node:20-alpine
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install --include=dev
COPY . .
EXPOSE 4000
CMD ["npm", "run", "start:dev"]
build: .
command: npm run start:dev
ports:
- "4000:4000"
env_file: .env