-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathContainerfile
More file actions
27 lines (21 loc) · 930 Bytes
/
Containerfile
File metadata and controls
27 lines (21 loc) · 930 Bytes
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
FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:69f5c9886ecb19b23e88275a5cd904c47dd982dfa370fbbd0c356d7b1047ef68
COPY . /usr/local/src/exodus-lambda
RUN \
# Install shadow-utils for adduser functionality
microdnf -y install shadow-utils \
# Install extra commands needed for build
&& microdnf -y install python3.11 python3.11-devel python3.11-pip gcc make \
&& microdnf -y install /usr/bin/openssl /usr/bin/envsubst \
# Ensure packages are up-to-date
&& microdnf -y update \
# Install application itself
&& cd /usr/local/src/exodus-lambda \
&& pip3.11 install --require-hashes -r requirements-fakefront.txt \
&& pip3.11 install --editable . \
# Clean up unnecessary data
&& microdnf clean all && rm -rf /var/cache/yum
RUN adduser fakefront
USER fakefront
EXPOSE 8080
WORKDIR /usr/local/src/exodus-lambda
ENTRYPOINT ["gunicorn", "-b", ":8080", "support.fakefront"]