AnkitPatil commited on
Commit
f52b346
·
verified ·
1 Parent(s): 2649871

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y \
15
  libffi-dev \
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
- # Install RDKit via conda
19
  RUN pip install --upgrade pip
20
  RUN pip install streamlit pandas
21
  RUN pip install rdkit-pypi
@@ -25,7 +25,13 @@ RUN pip install numpy<2.0
25
  COPY app.py /app/app.py
26
  COPY requirements.txt /app/requirements.txt
27
  COPY sample_molecules.csv /app/sample_molecules.csv
 
28
 
 
29
  WORKDIR /app
30
 
 
 
 
 
31
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
15
  libffi-dev \
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
+ # Install Python packages
19
  RUN pip install --upgrade pip
20
  RUN pip install streamlit pandas
21
  RUN pip install rdkit-pypi
 
25
  COPY app.py /app/app.py
26
  COPY requirements.txt /app/requirements.txt
27
  COPY sample_molecules.csv /app/sample_molecules.csv
28
+ COPY .streamlit/config.toml /app/.streamlit/config.toml
29
 
30
+ # Set working directory
31
  WORKDIR /app
32
 
33
+ # Set Streamlit config path after WORKDIR is set
34
+ ENV STREAMLIT_ROOT_PATH /app/.streamlit
35
+
36
+ # Start the app
37
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]