mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
simplify the dockerfile and move it to a separate file
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user