Skip to content

Commit

Permalink
Simplify Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Heinrich Reimer <[email protected]>
  • Loading branch information
janheinrichmerker authored Mar 5, 2024
1 parent db8802c commit 6d28a7a
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand All @@ -33,4 +24,4 @@ RUN \

ADD . .

ENTRYPOINT ["/venv/bin/python", "-m", "archive_query_log"]
ENTRYPOINT ["/venv/bin/python", "-m", "archive_query_log"]

0 comments on commit 6d28a7a

Please sign in to comment.