From 256250725f873dc8b3451af525c299939074df0a Mon Sep 17 00:00:00 2001
From: Jonas Eppelt <jonas.eppelt@kit.edu>
Date: Tue, 24 Oct 2023 04:38:50 +0200
Subject: [PATCH] testing multistage herwig

---
 tp_herwig/Dockerfile | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)
 mode change 100755 => 100644 tp_herwig/Dockerfile

diff --git a/tp_herwig/Dockerfile b/tp_herwig/Dockerfile
old mode 100755
new mode 100644
index 2c51d60..e3b828b
--- a/tp_herwig/Dockerfile
+++ b/tp_herwig/Dockerfile
@@ -1,14 +1,7 @@
-from jeppelt/etp_tp:latest
+FROM hepstore/rivet-herwig:latest as herwig
+WORKDIR /herwig
 
-USER root
+FROM jeppelt/etp_basis:latest
+COPY --from=herwig /herwig .
 
-ENV HERWIGPATH=/opt/herwig
 
-RUN wget  https://herwig.hepforge.org/downloads/herwig-bootstrap && \
-    mkdir -p $HERWIGPATH && \
-    chmod +x herwig-bootstrap && \
-    ./herwig-bootstrap -j4 $HERWIGPATH && \
-    rm herwig-bootstrap && \
-    source ${HERWIGPATH}/bin/activate
-
-USER $NB_USER
\ No newline at end of file
-- 
GitLab