-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (19 loc) · 930 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM python:3.11-slim-buster
RUN apt-get update && apt-get install -y --no-install-recommends git && \
rm -rf /var/lib/apt/lists/*
RUN adduser --uid 1000 --disabled-password --gecos '' appuser
USER 1000
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PATH="/home/appuser/.local/bin:$PATH"
WORKDIR /home/appuser/ai_changelog
RUN pip install --user --no-cache-dir --upgrade pip
COPY ./requirements.txt /home/appuser/ai_changelog/requirements.txt
RUN python -m pip install --user --no-cache-dir --upgrade -r /home/appuser/ai_changelog/requirements.txt
RUN git config --global --add safe.directory "*"
COPY ./pyproject.toml /home/appuser/ai_changelog/pyproject.toml
COPY ./README.md /home/appuser/ai_changelog/README.md
COPY ./ai_changelog /home/appuser/ai_changelog/ai_changelog
RUN python -m pip install --user --no-cache-dir /home/appuser/ai_changelog
WORKDIR /home/appuser/
ENTRYPOINT ["ai_changelog"]