Update Dockerfile
Browse files- Dockerfile +1 -7
Dockerfile
CHANGED
@@ -1,11 +1,5 @@
|
|
1 |
FROM python:3.11-slim
|
2 |
|
3 |
-
# 设置为中国国内源(针对 Bookworm/Debian 12)
|
4 |
-
RUN rm -rf /etc/apt/sources.list.d/* && \
|
5 |
-
echo "deb http://mirrors.ustc.edu.cn/debian bookworm main" > /etc/apt/sources.list && \
|
6 |
-
echo "deb http://mirrors.ustc.edu.cn/debian bookworm-updates main" >> /etc/apt/sources.list && \
|
7 |
-
echo "deb http://mirrors.ustc.edu.cn/debian-security bookworm-security main" >> /etc/apt/sources.list
|
8 |
-
|
9 |
WORKDIR /app
|
10 |
|
11 |
# Install system dependencies
|
@@ -44,7 +38,7 @@ RUN apt-get update && apt-get install -y \
|
|
44 |
|
45 |
# Copy requirements first to leverage Docker cache
|
46 |
COPY requirements.txt .
|
47 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
48 |
|
49 |
# Copy the rest of the application
|
50 |
COPY . .
|
|
|
1 |
FROM python:3.11-slim
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
WORKDIR /app
|
4 |
|
5 |
# Install system dependencies
|
|
|
38 |
|
39 |
# Copy requirements first to leverage Docker cache
|
40 |
COPY requirements.txt .
|
41 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
42 |
|
43 |
# Copy the rest of the application
|
44 |
COPY . .
|