-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (18 loc) · 683 Bytes
/
Dockerfile
File metadata and controls
23 lines (18 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.13-slim-trixie
ENV PYTHONUNBUFFERED=1
ARG DEV_BUILD
WORKDIR /app
RUN apt update \
&& apt upgrade -y \
&& apt install -y aria2 build-essential python3-dev wget \
&& apt purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
RUN addgroup --gid ${GID:-1000} python \
&& adduser --disabled-password --gecos "" --home /app --uid ${UID:-1000} --gid ${GID:-1000} python \
&& chown -R python:python /app
COPY requirements.txt /app/
COPY requirements-development.txt /app/
RUN pip install --no-cache-dir -U pip \
&& pip install --no-cache-dir -r /app/requirements-development.txt
COPY . /app/