1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Update Dockerfile

improving docker file performance
This commit is contained in:
Patrik J. Braun 2019-01-18 11:18:14 +01:00 committed by GitHub
parent 872ca009a8
commit 2b0d21f99e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,17 +1,14 @@
FROM node:10-stretch
MAINTAINER Patrik J. Braun
LABEL maintainer="Patrik J. Braun"
RUN git clone https://github.com/bpatrik/pigallery2.git && \
cd /pigallery2 && \
npm install --unsafe-perm && \
npm run build-release
RUN cp -r /pigallery2/release /pigallery2-release && \
rm /pigallery2 -R
RUN cd /pigallery2-release && \
npm run build-release && \
cp -r /pigallery2/release /pigallery2-release && \
rm /pigallery2 -R && \
cd /pigallery2-release && \
npm install --unsafe-perm
cmd cd /pigallery2-release && npm start
CMD cd /pigallery2-release && npm start