diff --git a/Dockerfile b/Dockerfile index c7f1da0..e587f7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM amd64/python:3.11.3-alpine3.16 -RUN apk add --no-cache git +FROM amd64/python:3.11.3-slim-bullseye +RUN apt-get update -qq && apt-get install -qq git --no-install-recommends && rm -rf /var/lib/apt/lists/* WORKDIR ./ ARG PUID=1000 ENV GROUP dockergroup @@ -7,7 +7,7 @@ ENV USER docker ENV HOMEDIR "/home/${USER}" ENV PATH ${HOMEDIR}/.local/bin:$PATH ENV PLUGIN_PROFILE production -RUN addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}" +RUN useradd -u "${PUID}" -m "${USER}" COPY script.sh /bin/ RUN chmod +x /bin/script.sh USER ${USER} diff --git a/requirements.txt b/requirements.txt index 627e9e9..1f3187e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ ansible==7.5.0 -ansible-lint==6.15.0 +ansible-lint==6.16.0