Time_process / Dockerfile
Bikyla's picture
Update Dockerfile
b669e90 verified
raw
history blame contribute delete
653 Bytes
FROM python:3.12-slim
RUN apt-get update && apt-get install -y libgomp1
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user requirements.txt .
RUN pip install -r requirements.txt
COPY --chown=user Frez.jpg .
COPY --chown=user Main.jpg .
COPY --chown=user Toch.jpg .
COPY --chown=user model.pkl .
COPY --chown=user scaler.pkl .
COPY --chown=user df.csv .
COPY --chown=user streamlit_app.py .
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
CMD ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]