diff options
Diffstat (limited to 'Dockerfile')
-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 |