StarrySkyWorld commited on
Commit
a389b09
·
verified ·
1 Parent(s): 4cd1798

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -12
Dockerfile CHANGED
@@ -1,16 +1,10 @@
1
- FROM python:3.11-slim
2
-
3
- WORKDIR /app
4
-
5
- COPY requirements.txt /app/
6
- COPY entrypoint.sh /app/
7
-
8
- RUN apt-get update \
9
- && apt-get install -y --no-install-recommends curl ca-certificates unzip \
10
- && rm -rf /var/lib/apt/lists/* \
11
- && pip install --no-cache-dir -r requirements.txt \
12
- && chmod +x /app/entrypoint.sh
13
 
 
14
  EXPOSE 7860
15
 
 
 
 
16
  CMD ["/app/entrypoint.sh"]
 
1
+ # 使用 Deno 官方镜像
2
+ FROM denoland/deno:1.37.0
 
 
 
 
 
 
 
 
 
 
3
 
4
+ # 暴露 Hugging Face 要求的 7860 端口
5
  EXPOSE 7860
6
 
7
+ # 设置工作目录
8
+ WORKDIR /app
9
+
10
  CMD ["/app/entrypoint.sh"]