Bartix84 commited on
Commit
a27fb5b
·
verified ·
1 Parent(s): 2d461bd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 src/ ./src/
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 pip install --no-cache-dir -r requirements.txt
20
 
21
  EXPOSE 8501
22
 
23
  ENV HOME=/app
24
 
25
- ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
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"]