Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +25 -0
Dockerfile
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
|
3 |
+
WORKDIR /app
|
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 |
+
COPY requirements.txt .
|
12 |
+
|
13 |
+
COPY seer.py .
|
14 |
+
|
15 |
+
COPY img1.png .
|
16 |
+
|
17 |
+
COPY img2.png .
|
18 |
+
|
19 |
+
COPY date_features.py .
|
20 |
+
|
21 |
+
RUN pip3 install --upgrade pip
|
22 |
+
|
23 |
+
RUN pip3 install -r requirements.txt
|
24 |
+
|
25 |
+
CMD ["streamlit","run","seer.py", "--server.address", "0.0.0.0", "--server.port", "7860", "--browser.serverAddress", "ghylb-Sales_Prediction.hf.space", "--browser.serverAddress","0.0.0.0:7860"]
|