ansible-lint/Dockerfile
2023-03-13 12:42:58 +01:00

22 lines
No EOL
588 B
Docker

FROM amd64/python:3.11.2-alpine3.16
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 addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}"
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
COPY card.json .
COPY card.data.json .
ENTRYPOINT [ "script.sh" ]