From 58306b1e72e3f64f24b37aaae9aa372da1bd7332 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Mon, 14 Mar 2022 16:31:53 +0000 Subject: [PATCH] switch base image to python:alpine --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0fe06c5..8c69a93 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,12 @@ -FROM python:slim +FROM python:alpine WORKDIR ./ ARG PUID=1000 +ENV GROUP dockergroup ENV USER docker ENV HOMEDIR "/home/${USER}" -RUN useradd -u "${PUID}" -m "${USER}" +RUN addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}" USER ${USER} WORKDIR ${HOMEDIR} COPY . .