Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +15 -0
Dockerfile
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10-slim
|
2 |
+
|
3 |
+
WORKDIR /app
|
4 |
+
COPY requirements.txt .
|
5 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
6 |
+
|
7 |
+
# copy app
|
8 |
+
COPY app.py .
|
9 |
+
|
10 |
+
# streamlit config for production
|
11 |
+
ENV STREAMLIT_SERVER_ENABLE_CORS=false
|
12 |
+
ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false
|
13 |
+
|
14 |
+
EXPOSE 8501
|
15 |
+
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|