ansible-lint/Dockerfile

22 lines
588 B
Text
Raw Permalink Normal View History

2023-02-15 00:57:15 +01:00
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
2023-02-15 01:42:52 +01:00
ENV PLUGIN_PROFILE production
2023-02-15 00:57:15 +01:00
RUN addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}"
2023-02-15 01:42:52 +01:00
COPY script.sh /bin/
RUN chmod +x /bin/script.sh
2023-02-15 00:57:15 +01:00
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
2023-03-13 12:42:58 +01:00
COPY card.json .
COPY card.data.json .
2023-02-15 00:57:15 +01:00
2023-02-15 01:42:52 +01:00
ENTRYPOINT [ "script.sh" ]