mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-19 08:50:29 +00:00
simplify the dockerfile and move it to a separate file
This commit is contained in:
4
Dockerfile
Normal file
4
Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
FROM node:20-alpine
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
COPY . .
|
||||||
|
EXPOSE 4000
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user