@@ -7,7 +7,7 @@ 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- s6
10+ FROM ${ECR_URI} as ubuntu-fips-s6
1111# set version labels
1212ARG BUILD_DATE
1313ARG VERSION
@@ -23,26 +23,21 @@ LABEL maintainer="civisanalytics"
2323ENV REL=jammy
2424ENV ARCH=amd64
2525
26- # Install Python 3.10 and development tools
26+ # Install base development tools (no Python)
2727RUN apt-get update && apt-get install -y \
2828 curl \
2929 tzdata \
30- python3.10 \
31- python3.10-dev \
32- python3.10-venv \
33- python3-pip \
3430 build-essential \
3531 libpq-dev \
3632 git \
3733 ca-certificates \
3834 openssl \
3935 xz-utils \
4036 libssl-dev && \
37+ # Clean up
4138 rm -rf /var/lib/apt/lists/* && \
4239 # Update CA certificates to ensure SSL/TLS works properly
43- update-ca-certificates && \
44- ln -sf /usr/bin/python3.10 /usr/bin/python && \
45- ln -sf /usr/bin/python3.10 /usr/bin/python3
40+ update-ca-certificates
4641
4742# add s6 overlay
4843ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz /tmp
@@ -61,7 +56,7 @@ ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-s
6156ADD --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"
6257ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/lsiown.${LSIOWN_VERSION}" "/usr/bin/lsiown"
6358
64- FROM ubuntu-fips-python- s6 as linuxserver-python -base
59+ FROM ubuntu-fips-s6 as linuxserver-base
6560
6661# set environment variables
6762ARG DEBIAN_FRONTEND="noninteractive"
@@ -71,9 +66,7 @@ ENV HOME="/workspace" \
7166 TERM="xterm" \
7267 S6_CMD_WAIT_FOR_SERVICES_MAXTIME="0" \
7368 S6_VERBOSITY=1 \
74- S6_STAGE2_HOOK=/docker-mods \
75- VIRTUAL_ENV=/lsiopy \
76- PATH="/lsiopy/bin:$PATH"
69+ S6_STAGE2_HOOK=/docker-mods
7770
7871RUN \
7972 echo "**** Ripped from Ubuntu Docker Logic ****" && \
@@ -132,8 +125,7 @@ RUN \
132125 /app \
133126 /config \
134127 /defaults \
135- /workspace \
136- /lsiopy && \
128+ /workspace && \
137129 echo "**** cleanup ****" && \
138130 apt-get autoremove && \
139131 apt-get clean && \
0 commit comments