mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-28 19:23:43 -04:00
Consolidate on single layer
This commit is contained in:
+6
-2
@@ -46,6 +46,11 @@ RUN \
|
||||
make && \
|
||||
make install DESTDIR=/root-layer
|
||||
|
||||
FROM scratch as consolidate-builds
|
||||
|
||||
COPY --from=buildstage-x86_64 /root-layer/ /par2cmdline-turbo/x86_64
|
||||
COPY --from=buildstage-aarch64 /root-layer/ /par2cmdline-turbo/aarch64
|
||||
COPY root/ /
|
||||
|
||||
## Single layer deployed image ##
|
||||
FROM scratch
|
||||
@@ -53,5 +58,4 @@ FROM scratch
|
||||
LABEL maintainer="thespad"
|
||||
|
||||
# Add files from buildstage
|
||||
COPY --from=buildstage-x86_64 /root-layer/ /par2cmdline-turbo/x86_64
|
||||
COPY --from=buildstage-aarch64 /root-layer/ /par2cmdline-turbo/aarch64
|
||||
COPY --from=consolidate-builds / /
|
||||
|
||||
Reference in New Issue
Block a user