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