kofdai commited on
Commit
079a29e
·
verified ·
1 Parent(s): 62fdb6d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+ COPY . .
5
+
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ # ポート設定(Spacesのデフォルトは7860)
9
+ EXPOSE 7860
10
+
11
+ # ライセンス同意を自動化するための環境変数を設定(任意)
12
+ ENV AXIS_LICENSE_AGREED=TRUE
13
+
14
+ CMD ["python", "server.py"]