Minor Dockerfile optimisations
rodzic
1b2c125703
commit
d10fcb7b45
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Ładowanie…
Reference in New Issue