Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -6
Dockerfile
CHANGED
@@ -10,16 +10,14 @@ RUN apt-get update && apt-get install -y \
|
|
10 |
&& rm -rf /var/lib/apt/lists/*
|
11 |
|
12 |
COPY requirements.txt ./
|
13 |
-
COPY
|
14 |
|
15 |
-
RUN mkdir -p /app/.streamlit &&
|
16 |
-
echo "[general]\nemail = \"\"\n" > /app/.streamlit/credentials.toml && \
|
17 |
-
echo "[server]\nheadless = true\nport = 8501\nenableCORS = false\n" > /app/.streamlit/config.toml
|
18 |
|
19 |
-
RUN
|
20 |
|
21 |
EXPOSE 8501
|
22 |
|
23 |
ENV HOME=/app
|
24 |
|
25 |
-
ENTRYPOINT ["streamlit", "run", "
|
|
|
10 |
&& rm -rf /var/lib/apt/lists/*
|
11 |
|
12 |
COPY requirements.txt ./
|
13 |
+
COPY . .
|
14 |
|
15 |
+
RUN mkdir -p /app/.streamlit && chmod -R 777 /app/.streamlit
|
|
|
|
|
16 |
|
17 |
+
RUN pip3 install --no-cache-dir -r requirements.txt
|
18 |
|
19 |
EXPOSE 8501
|
20 |
|
21 |
ENV HOME=/app
|
22 |
|
23 |
+
ENTRYPOINT ["streamlit", "run", "main.py", "--server.port=8501", "--server.address=0.0.0.0"]
|