File size: 864 Bytes
bbcd4a0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d5a2c60
bbcd4a0
 
 
 
 
 
 
 
 
ab07025
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Use the official image as a parent image
FROM python:3.11-slim

# Set the working directory in the container
WORKDIR /app

# Install system dependencies required for building packages
RUN apt-get update && \
    apt-get install -y build-essential git && \
    apt-get install -y libxrender1 libxext6 && \
    apt-get clean

# Upgrade pip
RUN pip install --upgrade pip

# Install dependencies
RUN pip install streamlit rdkit

# Install the Selector package from the source code
RUN pip install -r https://raw.githubusercontent.com/theochem/Selector/refs/heads/main/requirements_dev.txt
RUN pip install git+https://github.com/theochem/Selector.git

# Copy the rest of the application code
COPY . .

# Expose the port the app runs on
EXPOSE 8501

# Command to run the app
CMD ["streamlit", "run", "streamlit_app/Selector.py", "--server.enableXsrfProtection=false"]