ansible-lint/Dockerfile
Aaron Riedel d5c3dc7119
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/manual/woodpecker Pipeline was successful
update to work with woodpecker
2024-10-10 22:14:51 +02:00

19 lines
No EOL
541 B
Docker

FROM python:3.13.0-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
ENTRYPOINT [ "script.sh" ]