Added docker compose

pull/1/head
Trivernis 5 years ago
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"

6
package-lock.json generated

@ -6934,9 +6934,9 @@
"dev": true "dev": true
}, },
"type": { "type": {
"version": "1.0.3", "version": "1.2.0",
"resolved": "https://registry.npmjs.org/type/-/type-1.0.3.tgz", "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz",
"integrity": "sha512-51IMtNfVcee8+9GJvj0spSuFcZHe9vSib6Xtgsny1Km9ugyz2mbS08I3rsUIRYgJohFRFU1160sgRodYz378Hg==", "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==",
"dev": true "dev": true
}, },
"type-is": { "type-is": {

@ -4,7 +4,9 @@
"description": "Server for greenvironment network", "description": "Server for greenvironment network",
"main": "./dist/index.js", "main": "./dist/index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1",
"build": "gulp",
"start": "node ./dist/index.js"
}, },
"repository": { "repository": {
"type": "git", "type": "git",

Loading…
Cancel
Save