Added initial dockerfile

This commit is contained in:
Wyatt Johnson
2016-11-01 08:42:09 -06:00
parent 3836aa587e
commit 3c3d0640cf
3 changed files with 28 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
node_modules
+24
View File
@@ -0,0 +1,24 @@
FROM node
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Setup the environment
ENV PATH /usr/src/app/bin:$PATH
EXPOSE 5000
# Install app dependencies
COPY package.json /usr/src/app/
RUN npm install
# Bundle app source
COPY . /usr/src/app
# Compile static assets
# RUN npm run build
# Prune development dependancies
RUN npm prune --production
CMD [ "npm", "start" ]
+3 -3
View File
@@ -2,9 +2,9 @@
"name": "talk",
"version": "0.0.1",
"description": "A commenting platform from The Coral Project. https://coralproject.net",
"main": "server/app.js",
"main": "./server/bin/www",
"scripts": {
"test": "npm test"
"start": "./server/bin/www"
},
"repository": {
"type": "git",
@@ -17,7 +17,7 @@
"ask"
],
"author": "",
"license": "ISC",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/coralproject/talk/issues"
},