update packages, use yarn , use node 8
This commit is contained in:
parent
c20d9dd9be
commit
86bad66ff4
13
Dockerfile
13
Dockerfile
@ -1,3 +1,14 @@
|
|||||||
FROM node:4-onbuild
|
|
||||||
# replace this with your application's default port
|
# replace this with your application's default port
|
||||||
|
FROM node:8
|
||||||
|
RUN mkdir -p /usr/src/app
|
||||||
|
RUN curl -o- -L https://yarnpkg.com/install.sh | bash
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
ARG NODE_ENV
|
||||||
|
ENV NODE_ENV $NODE_ENV
|
||||||
|
COPY package.json /usr/src/app/
|
||||||
|
RUN yarn install && yarn cache clean --force
|
||||||
|
COPY . /usr/src/app
|
||||||
|
|
||||||
|
CMD [ "yarn", "start" ]
|
||||||
EXPOSE 7777
|
EXPOSE 7777
|
||||||
|
26
package.json
26
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "haste",
|
"name": "haste",
|
||||||
"version": "0.1.0",
|
"version": "0.2.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Private Pastebin Server",
|
"description": "Private Pastebin Server",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@ -14,35 +14,29 @@
|
|||||||
},
|
},
|
||||||
"main": "haste",
|
"main": "haste",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"busboy": "0.2.4",
|
"connect": "3.6.5",
|
||||||
"connect": "3.4.1",
|
|
||||||
"connect-ensure-login": "^0.1.1",
|
"connect-ensure-login": "^0.1.1",
|
||||||
"connect-query": "^0.2.0",
|
"connect-query": "^1.0.0",
|
||||||
"connect-ratelimit": "0.0.7",
|
"connect-ratelimit": "0.0.7",
|
||||||
"connect-redirection": "0.0.1",
|
"connect-redirection": "0.0.1",
|
||||||
"connect-route": "0.1.5",
|
"connect-route": "0.1.5",
|
||||||
"cookie-parser": "^1.4.3",
|
"cookie-parser": "^1.4.3",
|
||||||
"dotenv": "^4.0.0",
|
"dotenv": "^4.0.0",
|
||||||
"express": "^4.14.0",
|
"express": "^4.14.0",
|
||||||
|
"express-session": "^1.15.6",
|
||||||
"nodemon": "^1.11.0",
|
"nodemon": "^1.11.0",
|
||||||
"pg": "4.1.1",
|
"passport": "^0.4.0",
|
||||||
"redis": "0.8.1",
|
"passport-google-oauth20": "^1.0.0",
|
||||||
"redis-url": "0.1.0",
|
"st": "^1.2.2",
|
||||||
"st": "1.1.0",
|
"uglify-js": "1.3.5",
|
||||||
"uglify-js": "1.3.3",
|
"winston": "2.4.0"
|
||||||
"winston": "0.6.2"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"busboy": "0.2.14",
|
||||||
"mocha": "*",
|
"mocha": "*",
|
||||||
"passport": "^0.3.2",
|
|
||||||
"passport-google-oauth20": "^1.0.0",
|
|
||||||
"should": "*"
|
"should": "*"
|
||||||
},
|
},
|
||||||
"bundledDependencies": [],
|
"bundledDependencies": [],
|
||||||
"engines": {
|
|
||||||
"node": "0.10.35",
|
|
||||||
"npm": "1.1.49"
|
|
||||||
},
|
|
||||||
"bin": {
|
"bin": {
|
||||||
"haste-server": "./server.js"
|
"haste-server": "./server.js"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user