2024-10-08 22:57:38 +02:00
|
|
|
FROM python:3.13.0-slim-bullseye
|
2023-05-10 20:27:09 +02:00
|
|
|
RUN apt-get update -qq && apt-get install -qq git --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
2023-02-15 00:57:15 +01:00
|
|
|
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-05-10 20:27:09 +02:00
|
|
|
RUN useradd -u "${PUID}" -m "${USER}"
|
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
|
2023-02-15 01:07:51 +01:00
|
|
|
RUN git config --global --add safe.directory /drone/src
|
2023-02-15 00:57:15 +01:00
|
|
|
|
2023-02-15 01:42:52 +01:00
|
|
|
ENTRYPOINT [ "script.sh" ]
|