Skip to content
This repository was archived by the owner on Dec 15, 2019. It is now read-only.

Commit 251ae78

Browse files
committed
Update Dockerfile and adjust scripts
1 parent 9e58692 commit 251ae78

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

docker/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ MAINTAINER Simon Reinisch <toports@gmx.de>
66
WORKDIR /app
77

88
# Upgrade
9-
RUN apt-get update && \
10-
apt-get upgrade -
9+
RUN apt update && \
10+
apt upgrade -y && \
11+
apt install redis-server && \
12+
systemctl enable redis-server.service
1113

1214
# Copy content into the container at /app
1315
COPY . /app

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"build:docker": "docker build -f docker/Dockerfile . -t vue-cloudfront-rest-api",
1717
"update:geoip-lite": "cd node_modules/geoip-lite && npm run-script updatedb",
1818
"start:ws": "node ./src/app.js",
19-
"start": "pm2 start ecosystem.json --no-daemon",
20-
"stop": "pm2 stop ecosystem.json",
19+
"start": "node ./scripts/start",
20+
"stop": "pm2 delete vue-cloudfront-server",
2121
"lint": "eslint ./src"
2222
},
2323
"dependencies": {

0 commit comments

Comments
 (0)