Skip to content

Commit 42a7864

Browse files
committed
Use alpine3 for rootfs stage, bump s6
1 parent 99268f5 commit 42a7864

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM alpine:3.19 as rootfs-stage
3+
FROM alpine:3 as rootfs-stage
44

55
# environment
66
ENV ARCH=x86_64
@@ -27,7 +27,7 @@ RUN \
2727
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
2828

2929
# set version for s6 overlay
30-
ARG S6_OVERLAY_VERSION="3.1.6.2"
30+
ARG S6_OVERLAY_VERSION="3.2.0.2"
3131
ARG S6_OVERLAY_ARCH="x86_64"
3232

3333
# add s6 overlay
@@ -38,7 +38,7 @@ RUN tar -C /root-out -Jxpf /tmp/s6-overlay-${S6_OVERLAY_ARCH}.tar.xz
3838

3939
# add s6 optional symlinks
4040
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-noarch.tar.xz /tmp
41-
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz
41+
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz && unlink /root-out/usr/bin/with-contenv
4242
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-arch.tar.xz /tmp
4343
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-arch.tar.xz
4444

@@ -50,12 +50,14 @@ ARG VERSION
5050
ARG MODS_VERSION="v3"
5151
ARG PKG_INST_VERSION="v1"
5252
ARG LSIOWN_VERSION="v1"
53+
ARG WITHCONTENV_VERSION="v1"
5354
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
5455
LABEL maintainer="TheLamer"
5556

5657
ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods"
5758
ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/package-install.${PKG_INST_VERSION}" "/etc/s6-overlay/s6-rc.d/init-mods-package-install/run"
5859
ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/lsiown.${LSIOWN_VERSION}" "/usr/bin/lsiown"
60+
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/with-contenv.${WITHCONTENV_VERSION}" "/usr/bin/with-contenv"
5961

6062
# environment variables
6163
ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \

Dockerfile.aarch64

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM alpine:3.19 as rootfs-stage
3+
FROM alpine:3 as rootfs-stage
44

55
# environment
66
ENV ARCH=aarch64
@@ -27,7 +27,7 @@ RUN \
2727
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
2828

2929
# set version for s6 overlay
30-
ARG S6_OVERLAY_VERSION="3.1.6.2"
30+
ARG S6_OVERLAY_VERSION="3.2.0.2"
3131
ARG S6_OVERLAY_ARCH="aarch64"
3232

3333
# add s6 overlay
@@ -38,7 +38,7 @@ RUN tar -C /root-out -Jxpf /tmp/s6-overlay-${S6_OVERLAY_ARCH}.tar.xz
3838

3939
# add s6 optional symlinks
4040
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-noarch.tar.xz /tmp
41-
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz
41+
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz && unlink /root-out/usr/bin/with-contenv
4242
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-arch.tar.xz /tmp
4343
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-arch.tar.xz
4444

@@ -50,12 +50,14 @@ ARG VERSION
5050
ARG MODS_VERSION="v3"
5151
ARG PKG_INST_VERSION="v1"
5252
ARG LSIOWN_VERSION="v1"
53+
ARG WITHCONTENV_VERSION="v1"
5354
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
5455
LABEL maintainer="TheLamer"
5556

5657
ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods"
5758
ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/package-install.${PKG_INST_VERSION}" "/etc/s6-overlay/s6-rc.d/init-mods-package-install/run"
5859
ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/lsiown.${LSIOWN_VERSION}" "/usr/bin/lsiown"
60+
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/with-contenv.${WITHCONTENV_VERSION}" "/usr/bin/with-contenv"
5961

6062
# environment variables
6163
ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \

0 commit comments

Comments
 (0)