mac9087 commited on
Commit
00cdc08
·
verified ·
1 Parent(s): c3798fe

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -0
Dockerfile ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a PyTorch base image
2
+ FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
3
+
4
+ WORKDIR /app
5
+
6
+ COPY requirements.txt .
7
+ RUN pip install --upgrade pip && pip install -r requirements.txt
8
+
9
+ COPY app.py .
10
+
11
+ EXPOSE 7860
12
+ CMD ["python", "app.py"]