Spaces:
Build error
Build error
Update Dockerfile
Browse files- 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
|
| 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"]
|