minimize image

This commit is contained in:
purerosefallen 2019-06-27 13:18:24 +08:00
parent 32b8e0ef8b
commit 7913214c20
No known key found for this signature in database
GPG Key ID: E6D78C90943A3185
2 changed files with 8 additions and 3 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
Dockerfile
.dockerignore
.git*
/LICENSE
/README.md

View File

@ -1,4 +1,4 @@
FROM node:stretch
FROM node:stretch-slim
#RUN sed -i 's/deb.debian.org/mirrors.163.com/g' /etc/apt/sources.list && \
# sed -i 's/security.debian.org/mirrors.163.com/g' /etc/apt/sources.list
@ -6,7 +6,7 @@ FROM node:stretch
# apt
RUN apt update && \
env DEBIAN_FRONTEND=noninteractive apt install -y curl wget vim sudo git sqlite3 python2.7 python-virtualenv python3.5 python3-virtualenv ffmpeg nginx
env DEBIAN_FRONTEND=noninteractive apt install -y python2.7 python-virtualenv python3.5 python3-virtualenv ffmpeg nginx
#pm2
RUN npm install -g pm2
@ -34,5 +34,5 @@ RUN cp -rf /taiko-web/docker/taiko-web-nginx.conf /etc/nginx/conf.d/ && \
#info
EXPOSE 80
VOLUME ["/taiko-web/public/songs"]
VOLUME [ "/taiko-web/public/songs" ]
CMD [ "/taiko-web/docker/entrypoint.sh" ]