Skip to content
This repository was archived by the owner on Nov 13, 2023. It is now read-only.

Commit 9e919dc

Browse files
committed
Adds ubi-based container image file
1 parent 1ea113c commit 9e919dc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Containerfile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM registry.access.redhat.com/ubi9/python-39:1-143.1697647134
2+
3+
# Add application sources with correct permissions for OpenShift
4+
USER 0
5+
6+
WORKDIR /opt/app-root/src
7+
ADD . /opt/app-root/src/
8+
RUN chown -R 1001:0 /opt/app-root/src/
9+
USER 1001
10+
11+
# Install the dependencies
12+
RUN pip install -r requirements.txt
13+
14+
# Run the application
15+
CMD uvicorn ols:app --host 0.0.0.0

0 commit comments

Comments
 (0)