Merge all layers into one.

This commit is contained in:
viferga 2019-09-19 11:37:19 -08:00
parent dc6352d14a
commit f4e773c0fd

@ -37,8 +37,8 @@ ENV GUIX_PROFILE="/root/.config/guix/current"
# Copy entry point # Copy entry point
COPY scripts/entry-point.sh /entry-point.sh COPY scripts/entry-point.sh /entry-point.sh
# Install Guix # Install Guix (https://github.com/docker/buildx/blob/master/README.md#--allowentitlement)
RUN apk add --no-cache --update --virtual .build-deps shadow \ RUN --security=insecure apk add --no-cache --update --virtual .build-deps shadow \
&& mkdir -p /gnu/store \ && mkdir -p /gnu/store \
&& addgroup guixbuild \ && addgroup guixbuild \
&& addgroup guix-builder \ && addgroup guix-builder \
@ -59,10 +59,8 @@ RUN apk add --no-cache --update --virtual .build-deps shadow \
ln -s $i /usr/local/share/info/; \ ln -s $i /usr/local/share/info/; \
done \ done \
&& guix archive --authorize < ~root/.config/guix/current/share/guix/ci.guix.gnu.org.pub \ && guix archive --authorize < ~root/.config/guix/current/share/guix/ci.guix.gnu.org.pub \
&& chmod +x /entry-point.sh && chmod +x /entry-point.sh \
&& source $GUIX_PROFILE/etc/profile \
# Run pull (https://github.com/docker/buildx/blob/master/README.md#--allowentitlement)
RUN --security=insecure source $GUIX_PROFILE/etc/profile \
&& ~root/.config/guix/current/bin/guix-daemon --build-users-group=guixbuild & guix pull && ~root/.config/guix/current/bin/guix-daemon --build-users-group=guixbuild & guix pull
ENTRYPOINT ["/entry-point.sh"] ENTRYPOINT ["/entry-point.sh"]