/ Dockerfile
Dockerfile
 1  FROM python:3.12.5-slim-bookworm
 2  
 3  RUN apt-get update && apt-get install -y --no-install-recommends pip gcc make python3-dev 
 4  RUN pip install uv 
 5  
 6  WORKDIR /app
 7  COPY . /app/
 8  
 9  RUN uv venv
10  RUN pip install -e "."
11  EXPOSE 8501
12  
13  ENV EMAIL=email 
14  ENV COMET_API_KEY=some_code
15  ENV COMET_PROJECT_NAME=some_name
16  ENV COMET_WORKSPACE=some_other_name
17  ENV HOPSWORKS_API_KEY=some_other_code
18  ENV HOPSWORKS_PROJECT_NAME=who_knows
19  
20  # Prevents the streamlit app from asking for an email address
21  RUN mkdir -p ~/.streamlit/
22  RUN echo "[general]"  > ~/.streamlit/credentials.toml
23  RUN echo "email = \"\""  >> ~/.streamlit/credentials.toml
24  
25  RUN touch /var/log/cron.log /var/log/supervisord.log
26  ENTRYPOINT ["uv", "run", "streamlit", "run", "src/inference_pipeline/frontend/main.py", "--server.port", "8501"]
27