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

4
Dockerfile Normal file
View File

@@ -0,0 +1,4 @@
FROM node:20-alpine
WORKDIR /usr/src/app
COPY . .
EXPOSE 4000

View File

@@ -1,15 +1,7 @@
services: services:
dev: dev:
build: build: .
context: . command: npm run start:dev
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"]
ports: ports:
- "4000:4000" - "4000:4000"
env_file: .env env_file: .env