From c2eac0c01b158a87f41e25567d929493d21e7609 Mon Sep 17 00:00:00 2001 From: Thomas Sundvoll Date: Tue, 9 Jan 2024 11:08:55 +0100 Subject: [PATCH] Fix gcc error when building Dockerfile --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fce0c0dd..093ddf00 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10-slim +FROM python:3.10.13-slim-bookworm WORKDIR /app @@ -6,6 +6,8 @@ ENV VIRTUAL_ENV=/venv RUN python -m venv --copies $VIRTUAL_ENV ENV PATH="$VIRTUAL_ENV/bin:$PATH" +RUN apt-get update +RUN apt-get install gcc python3-dev -y RUN python -m pip install --upgrade pip # Install dependencies before ISAR to cache pip installation