11# syntax=docker/dockerfile:1
22
3- FROM gabemendoza1/cloudcode-baseimage-ubuntu-fips:jammy-22.04
3+ # ECR and base image configuration
4+ ARG ECR_ACCOUNT_ID=1234567890123
5+ ARG ECR_REGION=us-east-999
6+ ARG BASE_IMAGE_NAME=ubuntu-fips
7+ ARG BASE_IMAGE_TAG=22.04
8+ ARG ECR_URI=${ECR_ACCOUNT_ID}.dkr.ecr-fips.${ECR_REGION}.amazonaws.com/${BASE_IMAGE_NAME}:${BASE_IMAGE_TAG}
9+
10+ FROM ${ECR_URI} as ubuntu-fips-base
411
512# set version labels
613ARG BUILD_DATE
@@ -14,8 +21,14 @@ ARG S6_OVERLAY_ARCH="x86_64"
1421LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
1522LABEL maintainer="civisanalytics"
1623
17- # add s6 overlay
24+ # install required packages and add s6 overlay
1825RUN \
26+ echo "**** install required packages ****" && \
27+ apt-get update && \
28+ apt-get install -y \
29+ curl \
30+ ca-certificates \
31+ xz-utils && \
1932 echo "**** add s6 overlay ****" && \
2033 curl -o /tmp/s6-overlay-noarch.tar.xz -L \
2134 "https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz" && \
8295COPY root/ /
8396
8497ENTRYPOINT ["/init" ]
98+
99+ FROM ubuntu-fips-base as ubuntu-fips-base-python
100+
101+ # Install Python 3.10 and development tools
102+ RUN apt-get update && apt-get install -y \
103+ python3.10 \
104+ python3.10-dev \
105+ python3.10-venv \
106+ python3-pip \
107+ build-essential \
108+ libpq-dev \
109+ git \
110+ ca-certificates \
111+ openssl \
112+ libssl-dev && \
113+ rm -rf /var/lib/apt/lists/* && \
114+ # Update CA certificates to ensure SSL/TLS works properly
115+ update-ca-certificates && \
116+ ln -sf /usr/bin/python3.10 /usr/bin/python && \
117+ ln -sf /usr/bin/python3.10 /usr/bin/python3
118+
0 commit comments