ansible-lint/Dockerfile
Aaron Riedel 5131632f2d
Some checks failed
continuous-integration/drone/push Build is failing
switch to debian
2023-05-10 20:21:47 +02:00

20 lines
No EOL
525 B
Docker

FROM amd64/python:3.11.3-slim-bullseye
RUN apk add --no-cache git
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" ]