Merge branch 'julius-dev' of Software_Engineering_I/greenvironment-server into develop
commit
8ef3264ea6
@ -0,0 +1,12 @@
|
||||
FROM node:current-alpine
|
||||
|
||||
COPY . /home/node/green
|
||||
WORKDIR /home/node/green
|
||||
RUN npm install -g gulp
|
||||
RUN npm install --save-dev
|
||||
RUN npm rebuild node-sass
|
||||
RUN gulp
|
||||
COPY . .
|
||||
EXPOSE 8080
|
||||
EXPOSE 5432
|
||||
CMD ["npm" , "run"]
|
@ -0,0 +1,15 @@
|
||||
version: "3"
|
||||
services:
|
||||
greenvironment:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./Dockerfile
|
||||
user: "node"
|
||||
working_dir: /home/node/green
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
volumes:
|
||||
- ./:/home/node/green
|
||||
ports:
|
||||
- "8080:8080"
|
||||
command: "npm start"
|
Loading…
Reference in New Issue