summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Dockerfile14
1 files 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