mgbam commited on
Commit
4232e86
·
verified ·
1 Parent(s): dad49da

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -3,6 +3,8 @@ FROM python:3.10-slim
3
  ENV PYTHONUNBUFFERED=1 \
4
  PIP_NO_CACHE_DIR=1 \
5
  PORT=7860 \
 
 
6
  STREAMLIT_SERVER_PORT=7860 \
7
  STREAMLIT_SERVER_HEADLESS=true \
8
  STREAMLIT_SERVER_ENABLECORS=false \
@@ -19,12 +21,12 @@ COPY requirements.txt .
19
  RUN pip install --upgrade pip setuptools wheel && \
20
  pip install -r requirements.txt
21
 
22
- # **Install spaCy small English model during build**
23
  RUN python -m spacy download en_core_web_sm
24
 
25
  COPY . .
26
 
27
  EXPOSE 7860
28
 
29
- CMD ["streamlit", "run", "app.py", \
30
  "--server.address=0.0.0.0", "--server.port=7860"]
 
3
  ENV PYTHONUNBUFFERED=1 \
4
  PIP_NO_CACHE_DIR=1 \
5
  PORT=7860 \
6
+ HOME=/code \
7
+ STREAMLIT_HOME=/code/.streamlit \
8
  STREAMLIT_SERVER_PORT=7860 \
9
  STREAMLIT_SERVER_HEADLESS=true \
10
  STREAMLIT_SERVER_ENABLECORS=false \
 
21
  RUN pip install --upgrade pip setuptools wheel && \
22
  pip install -r requirements.txt
23
 
24
+ # Install spaCy small model at build time
25
  RUN python -m spacy download en_core_web_sm
26
 
27
  COPY . .
28
 
29
  EXPOSE 7860
30
 
31
+ CMD ["streamlit", "run", "app.py",
32
  "--server.address=0.0.0.0", "--server.port=7860"]