Skip to content
Snippets Groups Projects
Commit 477ddd08 authored by Paolo.Brasolin's avatar Paolo.Brasolin
Browse files

feat: #be dockerization for prd

parent 249b09bd
No related branches found
No related tags found
No related merge requests found
Pipeline #22983 passed
......@@ -10,3 +10,8 @@ COPY package*.json ./
RUN npm install
COPY . .
FROM base as production
ENV NODE_PATH=./build
RUN npm run build
#CMD ["npm", "run", "start"]
......@@ -9,7 +9,6 @@ services:
volumes:
- ./src:/app/src
- ./nodemon.json:/app/nodemon.json
container_name: oetzi-backend-dev
ports:
- '8080:8080'
environment:
......
version: '3.7'
services:
webserver:
build:
context: .
dockerfile: Dockerfile
target: production
ports:
- '8080:8080'
environment:
- PORT=8080
command: npm run start
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment