ansible-lint/Dockerfile
Renovate Bot b17d9c285e
All checks were successful
continuous-integration/drone/push Build is passing
Update python Docker tag to v3.11.5
2023-08-26 02:08:32 +00:00

20 lines
No EOL
603 B
Docker

FROM amd64/python:3.11.5-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
ENV USER docker
ENV HOMEDIR "/home/${USER}"
ENV PATH ${HOMEDIR}/.local/bin:$PATH
ENV PLUGIN_PROFILE production
RUN useradd -u "${PUID}" -m "${USER}"
COPY script.sh /bin/
RUN chmod +x /bin/script.sh
USER ${USER}
WORKDIR ${HOMEDIR}
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN rm requirements.txt
RUN git config --global --add safe.directory /drone/src
ENTRYPOINT [ "script.sh" ]