KIFF commited on
Commit
22346f6
·
verified ·
1 Parent(s): 0589e21

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a base image with a suitable Python and PyTorch version
2
+ FROM pytorch/pytorch:2.0.0-cuda11.7-cudnn8-runtime
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy your model files into the container
8
+ COPY . /app
9
+
10
+ # Set the PYANNOTE_CACHE environment variable
11
+ ENV PYANNOTE_CACHE=/app/.cache
12
+
13
+ # Install dependencies
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Expose the port that your endpoint will listen on (if needed)
17
+ EXPOSE 8080
18
+
19
+ # Specify the command to run your endpoint (adjust if necessary)
20
+ CMD ["python", "handler.py"]