diff options
author | Yulqen <246857+yulqen@users.noreply.github.com> | 2024-04-23 12:26:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-23 12:26:22 +0100 |
commit | b8be69023305ec31aecf2d810522ccdecb15e0c4 (patch) | |
tree | 4158849362c817b63c3bb79762c5d493f3c4e660 | |
parent | 89c19b797441bc8c3b6f065c8007fa8a287f87c5 (diff) | |
parent | 9401df1101a6ad179279ff85e141456742488c69 (diff) |
Merge pull request #25 from defencedigital/pyswitch
Switching to alpine base image
-rw-r--r-- | Dockerfile | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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 |