From 2b0d21f99e660ae835fc1e494b82a158905209f9 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Fri, 18 Jan 2019 11:18:14 +0100 Subject: [PATCH] Update Dockerfile improving docker file performance --- docker/debian/stretch/Dockerfile | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/docker/debian/stretch/Dockerfile b/docker/debian/stretch/Dockerfile index b921c9e1..737555eb 100644 --- a/docker/debian/stretch/Dockerfile +++ b/docker/debian/stretch/Dockerfile @@ -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