minimize image
This commit is contained in:
parent
32b8e0ef8b
commit
7913214c20
5
.dockerignore
Normal file
5
.dockerignore
Normal file
@ -0,0 +1,5 @@
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
.git*
|
||||
/LICENSE
|
||||
/README.md
|
@ -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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user