forum1 commited on
Commit
e60da57
·
verified ·
1 Parent(s): a54785e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim-buster
2
+
3
+ # Install dependencies
4
+ RUN apt-get update && apt-get install -y wget
5
+
6
+ # Clone the Transformers library
7
+ RUN wget https://github.com/huggingface/transformers/archive/refs/heads/main.zip -O transformers.zip
8
+ RUN unzip transformers.zip -d transformers
9
+ RUN rm transformers.zip
10
+
11
+ # Install the Transformers library
12
+ WORKDIR transformers/transformers
13
+ RUN pip install -e .
14
+
15
+ # Copy your Python script
16
+ COPY app.py .
17
+
18
+ # Set the command to run your script
19
+ CMD ["python", "app.py"]