Skip to content

Commit c3f25e5

Browse files
authored
[MAIN-2452] Updated docker base image (#8)
* removed cves from old python version * only need gcc
1 parent 3a3c196 commit c3f25e5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Dockerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM us-central1-docker.pkg.dev/genuine-flight-317411/devel/base/python3.12-dev as builder
1+
FROM python:3.12-slim as builder
22

33
ENV LANG=C.UTF-8
44
ENV PYTHONDONTWRITEBYTECODE=1
@@ -8,11 +8,19 @@ ENV PATH="/app/venv/bin:$PATH"
88
WORKDIR /app/
99

1010
RUN python -m venv /app/venv
11+
12+
RUN apt-get update \
13+
# required for psutil python package to install
14+
&& apt-get install -y gcc \
15+
&& dpkg --add-architecture arm64 \
16+
&& apt-get purge -y --auto-remove \
17+
&& rm -rf /var/lib/apt/lists/*
18+
1119
COPY requirements.txt /app/requirements.txt
1220

1321
RUN pip install --no-cache-dir -r /app/requirements.txt
1422

15-
FROM us-central1-docker.pkg.dev/genuine-flight-317411/devel/base/python3.12
23+
FROM python:3.12-slim
1624

1725
WORKDIR /app/
1826

0 commit comments

Comments
 (0)