solitudeLin commited on
Commit
a04339d
·
1 Parent(s): 9ac02b0

Switch to pip install aktools

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -1,5 +1,8 @@
1
- # Base image: AKTools official Docker image
2
- FROM registry.cn-shanghai.aliyuncs.com/akfamily/aktools:1.8.95
 
 
 
3
 
4
  # Hugging Face Spaces injects PORT env var (default 7860)
5
  ENV PORT=7860
@@ -9,3 +12,4 @@ EXPOSE 7860
9
 
10
  # Start aktools binding to 0.0.0.0 and the PORT env variable
11
  CMD ["sh", "-c", "python -m aktools --host 0.0.0.0 --port ${PORT}"]
 
 
1
+ # Build from Python base image
2
+ FROM python:3.10-slim
3
+
4
+ # Install aktools
5
+ RUN pip install --no-cache-dir aktools
6
 
7
  # Hugging Face Spaces injects PORT env var (default 7860)
8
  ENV PORT=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}"]
15
+