2024-02-27 14:13:02 +00:00
|
|
|
FROM python:3.12.1-slim-bookworm
|
|
|
|
|
2024-05-31 19:10:01 +00:00
|
|
|
ARG USER_ID
|
|
|
|
ARG USER_NAME
|
|
|
|
ARG GROUP_ID
|
|
|
|
ARG GROUP_NAME
|
|
|
|
|
2024-02-27 14:13:02 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
RUN apt-get update \
|
2024-07-01 19:10:18 +00:00
|
|
|
&& apt-get install -y -q git-core curl vim-tiny \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2024-02-27 14:13:02 +00:00
|
|
|
|
2024-07-01 19:10:18 +00:00
|
|
|
RUN if ! getent group "$GROUP_ID"; then addgroup --gid $GROUP_ID $GROUP_NAME; fi
|
|
|
|
RUN adduser --uid $USER_ID --gid $GROUP_ID $USER_NAME
|
2024-05-31 19:10:01 +00:00
|
|
|
|
2024-02-27 14:13:02 +00:00
|
|
|
RUN git config --global --add safe.directory /app
|
|
|
|
|
|
|
|
RUN pip install --upgrade pip
|
2024-07-01 19:10:18 +00:00
|
|
|
RUN pip install poetry==1.8.1
|