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