-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 978 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (21 loc) · 978 Bytes
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
FROM python:3.12-slim
LABEL maintainer="agent1237@datawhalechina.cn"
LABEL team="agent①②③⑦"
LABEL project="livedaos"
LABEL git.repo="https://github.com/pamdla/livedaos"
ENV TZ=Asia/Shanghai \
DEBIAN_FRONTEND=noninteractive \
PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple/ \
PIP_TRUSTED_HOST=pypi.tuna.tsinghua.edu.cn \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt .
RUN rm -f /etc/apt/sources.list.d/* && \
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main" > /etc/apt/sources.list && \
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main" >> /etc/apt/sources.list && \
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main" >> /etc/apt/sources.list
RUN apt update && apt install -y curl \
&& pip install --no-cache-dir -U pip
RUN pip install --no-cache-dir -r requirements.txt
# CMD ["python", "main.py"]