Spaces:
Sleeping
Sleeping
Kwasiasomani
commited on
Commit
•
12fce25
1
Parent(s):
f980dca
Create Dockerfile
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
|
3 |
+
WORKDIR /code
|
4 |
+
|
5 |
+
# Create a writable directory for the cache
|
6 |
+
RUN mkdir -p /.cache/huggingface/hub && chmod -R 777 /.cache
|
7 |
+
|
8 |
+
# Set the TRANSFORMERS_CACHE environment variable
|
9 |
+
ENV TRANSFORMERS_CACHE /.cache/huggingface/hub
|
10 |
+
|
11 |
+
|
12 |
+
COPY ./requirements.txt /code/requirements.txt
|
13 |
+
|
14 |
+
RUN pip3 install --upgrade pip
|
15 |
+
|
16 |
+
RUN pip3 install -r requirements.txt
|
17 |
+
|
18 |
+
COPY . .
|
19 |
+
|
20 |
+
CMD ["streamlit","run","app.py", "--server.address", "0.0.0.0", "--server.port", "7860", "--browser.serverAddress", "kwasiasomani-Docker.hf.space", "--browser.serverAddress","0.0.0.0:7860"]
|