From 1ca9579f5270f4370afc9f17f4325af16b2efad0 Mon Sep 17 00:00:00 2001
From: Igor WITZ <igor.witz@etu.utc.fr>
Date: Sun, 14 Oct 2018 18:55:07 +0200
Subject: [PATCH] =?UTF-8?q?=C3=A7a=20construit=20bien?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 pica-etherpad/Dockerfile | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/pica-etherpad/Dockerfile b/pica-etherpad/Dockerfile
index 61d001db..9b903dfb 100644
--- a/pica-etherpad/Dockerfile
+++ b/pica-etherpad/Dockerfile
@@ -1,7 +1,6 @@
-LABEL maintainer="antoine@barbare.me"
-
 # déclaration unique des variables d'environnement
 FROM node:10.11.0-slim as base
+LABEL maintainer="antoine@barbare.me"
 
 ARG ETHERPAD_VERSION_BUILD=1.7.0
 ARG ETHERPAD_LANDING_PAGE_VERSION_BUILD=v0.1
@@ -44,17 +43,19 @@ FROM base
 COPY entrypoint.sh /entrypoint.sh
 RUN chmod +x /entrypoint.sh && \
     mkdir -p /opt/etherpad-lite && \
+    chown -R node /opt/etherpad-lite && \
     usermod -d /opt/etherpad-lite node && \
     rm -r /var/lib/apt/lists/*                          
 
 # import des fichiers téléchargés dans l'image downloader
-COPY --from=downloader /opt/etherpad-lite /opt/etherpad-lite --chown=node
+COPY --from=downloader --chown=node /opt/etherpad-lite /opt/etherpad-lite/ 
 
 USER node
 WORKDIR /opt/etherpad-lite
 
 # installation de dépendances supplémentaires
-RUN bin/installDeps.sh && \
+RUN ls -al && \
+    bin/installDeps.sh && \
     rm settings.json && \
     npm install \
         ep_align \
-- 
GitLab