From 6d28a7a24bbb396ff688a39667ed6f13311fd3cc Mon Sep 17 00:00:00 2001 From: Jan Heinrich Reimer Date: Tue, 5 Mar 2024 12:37:44 +0100 Subject: [PATCH] Simplify Dockerfile Signed-off-by: Jan Heinrich Reimer --- Dockerfile | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8bec6c8a..4d74686a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,8 @@ -FROM ubuntu:22.04 +FROM python:3.10-slim -ENV DEBIAN_FRONTEND=noninteractive RUN \ --mount=type=cache,target=/var/cache/apt \ - apt-get update -y && \ - apt-get upgrade -y -RUN \ - --mount=type=cache,target=/var/cache/apt \ - apt-get install -y software-properties-common && \ - add-apt-repository -y ppa:deadsnakes/ppa -RUN \ - --mount=type=cache,target=/var/cache/apt \ - apt-get install -y python3.10 python3.10-dev python3.10-venv git build-essential zlib1g-dev protobuf-compiler + apt-get install -y git build-essential zlib1g-dev protobuf-compiler RUN \ --mount=type=cache,target=/root/.cache/pip \ @@ -33,4 +24,4 @@ RUN \ ADD . . -ENTRYPOINT ["/venv/bin/python", "-m", "archive_query_log"] \ No newline at end of file +ENTRYPOINT ["/venv/bin/python", "-m", "archive_query_log"]