fialns commited on
Commit
ba2a4f8
·
verified ·
1 Parent(s): 62f2c7d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -28
Dockerfile CHANGED
@@ -1,28 +1 @@
1
- FROM python:3.9
2
-
3
- # 安裝系統工具
4
- RUN apt-get update && \
5
- apt-get install -y --no-install-recommends \
6
- git \
7
- gcc \
8
- libssl-dev \
9
- && rm -rf /var/lib/apt/lists/*
10
-
11
- # 設置工作目錄並克隆倉庫
12
- WORKDIR /app
13
- RUN git clone https://github.com/linqiu1199/augment2api.git && \
14
- mv augment2api/* . && \
15
- rm -rf augment2api
16
-
17
- # 安裝依賴套件
18
- RUN pip install --no-cache-dir --upgrade pip && \
19
- pip install --no-cache-dir -r requirements.txt
20
-
21
- # 環境變量設定
22
- ENV PYTHONPATH=/app:$PYTHONPATH
23
- ENV REDIS_CONN_STRING=$REDIS_CONN_STRING
24
- ENV AUTH_TOKEN=$AUTH_TOKEN
25
-
26
- # HuggingFace 必要配置
27
- EXPOSE 27080
28
- CMD ["/usr/local/bin/python", "-m", "augment2api.app", "--port", "7860"]
 
1
+ FROM linqiu1199/augment2api:v0.0.2