solitudeLin commited on
Commit
65ea47f
·
1 Parent(s): 293d79e

Use official Python image instead of China registry

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -10
  2. Dockerfile.fallback +1 -0
Dockerfile CHANGED
@@ -1,15 +1,6 @@
1
- # Build from Python base image
2
  FROM python:3.10-slim
3
 
4
- # Install system dependencies required by aktools
5
- RUN apt-get update && apt-get install -y --no-install-recommends \
6
- gcc \
7
- g++ \
8
- libffi-dev \
9
- libxml2-dev \
10
- libxslt-dev \
11
- && rm -rf /var/lib/apt/lists/*
12
-
13
  # Install aktools
14
  RUN pip install --no-cache-dir aktools
15
 
 
1
+ # Base image: Official Python slim image
2
  FROM python:3.10-slim
3
 
 
 
 
 
 
 
 
 
 
4
  # Install aktools
5
  RUN pip install --no-cache-dir aktools
6
 
Dockerfile.fallback CHANGED
@@ -12,3 +12,4 @@ EXPOSE 7860
12
 
13
  # Start aktools binding to 0.0.0.0 and the PORT env variable
14
  CMD ["sh", "-c", "python -m aktools --host 0.0.0.0 --port ${PORT}"]
 
 
12
 
13
  # Start aktools binding to 0.0.0.0 and the PORT env variable
14
  CMD ["sh", "-c", "python -m aktools --host 0.0.0.0 --port ${PORT}"]
15
+