From 3d55fb10322d4587ed5e030c931f3fc76ee02a31 Mon Sep 17 00:00:00 2001 From: casjay Date: Tue, 11 Oct 2022 11:25:06 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 02cbfa9..0123490 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,7 +38,15 @@ RUN git clone https://github.com/cherokee/webserver.git . && \ libtool && \ rm -Rf /var/cache/apk/* /tmp/* /var/tmp/* /usr/src/* -FROM casjaysdevdocker/php:latest +FROM casjaysdevdocker/php:latest AS source +COPY --from=build /usr/local/bin/. /usr/local/bin/ +COPY --from=build /usr/local/lib/python2/. /usr/local/lib/python2/ +COPY --from=build /usr/local/share/cherokee/. /usr/local/share/cherokee/ +COPY ./bin/. /usr/local/bin/ +COPY ./data/. /usr/local/share/template-files/data/ +COPY ./config/. /usr/local/share/template-files/config/ + +FROM scratch ARG BUILD_DATE="$(date +'%Y-%m-%d %H:%M')" LABEL \ @@ -55,10 +63,7 @@ LABEL \ org.label-schema.vendor="CasjaysDev" \ maintainer="CasjaysDev " -COPY --from=build /usr/local/share/cherokee/. /usr/local/share/cherokee/ -COPY ./bin/. /usr/local/bin/ -COPY ./data/. /usr/local/share/template-files/data/ -COPY ./config/. /usr/local/share/template-files/config/ +COPY --from=source /. / ENV PHP_SERVER=cherokee