Sagar32 commited on
Commit
e25a1cb
·
verified ·
1 Parent(s): 4f29bb2

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Downgrade pip FIRST before anything else
6
+ RUN pip install "pip<24.1"
7
+
8
+ # Now install dependencies in the right order
9
+ RUN pip install torch --index-url https://download.pytorch.org/whl/cpu
10
+ RUN pip install omegaconf==2.0.6 --no-deps
11
+ RUN pip install hydra-core==1.0.7 --no-deps
12
+ RUN pip install fairseq==0.12.2
13
+ RUN pip install gradio numpy bitarray sacrebleu sentencepiece
14
+
15
+ # Copy all your files
16
+ COPY . .
17
+
18
+ EXPOSE 7860
19
+
20
+ CMD ["python", "app.py"]