Added docker compose
parent
bc8455f84b
commit
cbc1609ad4
@ -0,0 +1,11 @@
|
||||
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
|
||||
CMD ["npm" , "run"]
|
@ -0,0 +1,15 @@
|
||||
version: "2"
|
||||
services:
|
||||
greenvironment:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./Dockerfile
|
||||
user: "node"
|
||||
working_dir: /home/node/green
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
volumes:
|
||||
- ./:/home/node/green
|
||||
expose:
|
||||
- "8080"
|
||||
command: "npm start"
|
Loading…
Reference in New Issue