Minor Dockerfile optimisations

pull/130/head
TheSpad 2022-12-10 16:49:42 +00:00
rodzic 1b2c125703
commit d10fcb7b45
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 08F06191F4587860
3 zmienionych plików z 12 dodań i 9 usunięć

Wyświetl plik

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM alpine:3.15 as rootfs-stage FROM alpine:3.17 as rootfs-stage
# environment # environment
ENV REL=jammy ENV REL=jammy
@ -11,7 +11,6 @@ RUN \
apk add --no-cache \ apk add --no-cache \
bash \ bash \
curl \ curl \
tar \
tzdata \ tzdata \
xz xz
@ -23,7 +22,9 @@ RUN \
https://partner-images.canonical.com/core/${REL}/current/ubuntu-${REL}-core-cloudimg-${ARCH}-root.tar.gz && \ https://partner-images.canonical.com/core/${REL}/current/ubuntu-${REL}-core-cloudimg-${ARCH}-root.tar.gz && \
tar xf \ tar xf \
/rootfs.tar.gz -C \ /rootfs.tar.gz -C \
/root-out /root-out && \
rm -rf \
/root-out/var/log/*
# set version for s6 overlay # set version for s6 overlay
ARG S6_OVERLAY_VERSION="3.1.2.1" ARG S6_OVERLAY_VERSION="3.1.2.1"

Wyświetl plik

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM alpine:3.15 as rootfs-stage FROM alpine:3.17 as rootfs-stage
# environment # environment
ENV REL=jammy ENV REL=jammy
@ -11,7 +11,6 @@ RUN \
apk add --no-cache \ apk add --no-cache \
bash \ bash \
curl \ curl \
tar \
tzdata \ tzdata \
xz xz
@ -23,7 +22,9 @@ RUN \
https://partner-images.canonical.com/core/${REL}/current/ubuntu-${REL}-core-cloudimg-${ARCH}-root.tar.gz && \ https://partner-images.canonical.com/core/${REL}/current/ubuntu-${REL}-core-cloudimg-${ARCH}-root.tar.gz && \
tar xf \ tar xf \
/rootfs.tar.gz -C \ /rootfs.tar.gz -C \
/root-out /root-out && \
rm -rf \
/root-out/var/log/*
# set version for s6 overlay # set version for s6 overlay
ARG S6_OVERLAY_VERSION="3.1.2.1" ARG S6_OVERLAY_VERSION="3.1.2.1"

Wyświetl plik

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM alpine:3.15 as rootfs-stage FROM alpine:3.17 as rootfs-stage
# environment # environment
ENV REL=jammy ENV REL=jammy
@ -11,7 +11,6 @@ RUN \
apk add --no-cache \ apk add --no-cache \
bash \ bash \
curl \ curl \
tar \
tzdata \ tzdata \
xz xz
@ -23,7 +22,9 @@ RUN \
https://partner-images.canonical.com/core/${REL}/current/ubuntu-${REL}-core-cloudimg-${ARCH}-root.tar.gz && \ https://partner-images.canonical.com/core/${REL}/current/ubuntu-${REL}-core-cloudimg-${ARCH}-root.tar.gz && \
tar xf \ tar xf \
/rootfs.tar.gz -C \ /rootfs.tar.gz -C \
/root-out /root-out && \
rm -rf \
/root-out/var/log/*
# set version for s6 overlay # set version for s6 overlay
ARG S6_OVERLAY_VERSION="3.1.2.1" ARG S6_OVERLAY_VERSION="3.1.2.1"