@@ -7,7 +7,19 @@ ARG BASE_IMAGE_NAME=ubuntu-fips
77ARG BASE_IMAGE_TAG=22.04
88ARG ECR_URI=${ECR_ACCOUNT_ID}.dkr.ecr-fips.${ECR_REGION}.amazonaws.com/${BASE_IMAGE_NAME}:${BASE_IMAGE_TAG}
99
10- FROM ${ECR_URI} as ubuntu-fips-python
10+ FROM ${ECR_URI} as ubuntu-fips-python-s6
11+ # set version labels
12+ ARG BUILD_DATE
13+ ARG VERSION
14+ ARG MODS_VERSION="v3"
15+ ARG PKG_INST_VERSION="v1"
16+ ARG LSIOWN_VERSION="v1"
17+ ARG S6_OVERLAY_VERSION="3.1.6.2"
18+ ARG S6_OVERLAY_ARCH="x86_64"
19+
20+ LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
21+ LABEL maintainer="civisanalytics"
22+
1123ENV REL=jammy
1224ENV ARCH=amd64
1325
@@ -32,18 +44,6 @@ RUN apt-get update && apt-get install -y \
3244 ln -sf /usr/bin/python3.10 /usr/bin/python && \
3345 ln -sf /usr/bin/python3.10 /usr/bin/python3
3446
35-
36- FROM ubuntu-fips-python as ubuntu-fips-python-s6-mods
37-
38- # set version labels
39- ARG BUILD_DATE
40- ARG VERSION
41- ARG MODS_VERSION="v3"
42- ARG PKG_INST_VERSION="v1"
43- ARG LSIOWN_VERSION="v1"
44- ARG S6_OVERLAY_VERSION="3.1.6.2"
45- ARG S6_OVERLAY_ARCH="x86_64"
46-
4747# add s6 overlay
4848ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp
4949RUN tar -C / -Jxpf /tmp/s6-overlay-noarch.tar.xz
@@ -55,11 +55,13 @@ ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLA
5555RUN tar -C / -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz
5656ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-arch.tar.xz /tmp
5757RUN tar -C / -Jxpf /tmp/s6-overlay-symlinks-arch.tar.xz
58+
59+ # add mods
5860ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods"
5961ADD --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"
6062ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/lsiown.${LSIOWN_VERSION}" "/usr/bin/lsiown"
6163
62- FROM ubuntu-fips-python-s6-mods as ubuntu-fips -base
64+ FROM ubuntu-fips-python-s6 as linuxserver-python -base
6365
6466# set environment variables
6567ARG DEBIAN_FRONTEND="noninteractive"
@@ -141,12 +143,6 @@ RUN \
141143 /var/tmp/* \
142144 /var/log/*
143145
144- FROM ubuntu-fips-base as ubuntu-fips-base-python
145-
146- LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
147- LABEL maintainer="civisanalytics"
148-
149- # add local files
150146COPY root/ /
151147
152148ENTRYPOINT ["/init" ]
0 commit comments