mirror of
https://github.com/wassname/talk.git
synced 2026-07-09 13:45:13 +08:00
Added initial dockerfile
This commit is contained in:
@@ -0,0 +1 @@
|
||||
node_modules
|
||||
+24
@@ -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
@@ -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"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user