From 9401df1101a6ad179279ff85e141456742488c69 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 23 Apr 2024 12:25:21 +0100 Subject: Switching to alpine base image --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2c15bd0..278656e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,14 @@ # Pull base image -FROM python:3.12-bookworm +FROM python:3.12-alpine WORKDIR /app -RUN apt-get update \ - && apt-get install -y build-essential curl \ - && rm -rf /var/lib/apt/lists/* /usr/share/doc /usr/share/man \ - && apt-get clean \ - && useradd --create-home python \ - && chown python:python -R /app +RUN apk add --no-cache \ + build-base \ + curl \ + && adduser -D python \ + && mkdir -p /app \ + && chown python:python /app USER python -- cgit v1.2.3