summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYulqen <246857+yulqen@users.noreply.github.com>2024-04-23 12:26:22 +0100
committerGitHub <noreply@github.com>2024-04-23 12:26:22 +0100
commitb8be69023305ec31aecf2d810522ccdecb15e0c4 (patch)
tree4158849362c817b63c3bb79762c5d493f3c4e660
parent89c19b797441bc8c3b6f065c8007fa8a287f87c5 (diff)
parent9401df1101a6ad179279ff85e141456742488c69 (diff)
Merge pull request #25 from defencedigital/pyswitch
Switching to alpine base image
-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