File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ARG UBUNTU_VERSION=24.04
2+ ARG PYTHON_VERSION=3
3+
4+ FROM ubuntu:${UBUNTU_VERSION} AS ubuntu_python
5+
6+ ARG PYTHON_VERSION
7+ ENV PYTHON_VERSION=${PYTHON_VERSION}
8+
9+ ENV DEBIAN_FRONTEND=noninteractive
10+
11+ RUN apt-get update \
12+ && apt-get install -y --no-install-recommends \
13+ python${PYTHON_VERSION} \
14+ python${PYTHON_VERSION}-venv \
15+ python${PYTHON_VERSION}-pip \
16+ python${PYTHON_VERSION}-dev \
17+ && apt-get clean \
18+ && rm -rf /var/lib/apt/lists/*
19+
20+ RUN apt-get update && \
21+ apt-get install -y \
22+ apt-transport-https \
23+ ca-certificates \
24+ curl \
25+ gnupg \
26+ lsb-release && \
27+ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \
28+ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null && \
29+ apt-get update && \
30+ apt-get install -y docker-ce docker-ce-cli containerd.io
31+
32+ # Install docker-compose
33+ RUN curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
34+ chmod +x /usr/local/bin/docker-compose
35+
You can’t perform that action at this time.
0 commit comments