mirror of
https://github.com/sroecker/LLM_AppDev-HandsOn.git
synced 2026-02-06 10:47:18 +00:00
17 lines
373 B
Docker
17 lines
373 B
Docker
FROM registry.access.redhat.com/ubi9/python-311
|
|
|
|
# Add application sources with correct permissions for OpenShift
|
|
USER 0
|
|
ADD streamlit .
|
|
RUN chown -R 1001:0 ./
|
|
USER 1001
|
|
|
|
# Install the dependencies
|
|
RUN pip install -U "pip>=23.3.1" && \
|
|
pip install -r requirements.txt
|
|
|
|
EXPOSE 8080
|
|
|
|
# Run the application
|
|
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8080"]
|