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-05-31 19:10:01 +00:00
|
|
|
&& apt-get install -y -q git-core curl vim-tiny \
|
2024-02-27 14:13:02 +00:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2024-05-31 19:10:01 +00:00
|
|
|
RUN addgroup --gid $GROUP_ID $GROUP_NAME \
|
|
|
|
&& adduser --uid $USER_ID --gid $GROUP_ID $USER_NAME
|
|
|
|
|
2024-02-27 14:13:02 +00:00
|
|
|
RUN git config --global --add safe.directory /app
|
|
|
|
|
|
|
|
RUN pip install --upgrade pip
|
2024-02-29 10:27:06 +00:00
|
|
|
RUN pip install poetry==1.8.1
|