Skip to content

Commit

Permalink
Revert "Rootless runtime image (trustification#1300)" (trustification…
Browse files Browse the repository at this point in the history
…#1306)

This reverts commit eaa4966.
  • Loading branch information
desmax74 authored Apr 22, 2024
1 parent e1c6b84 commit 012e585
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions container_files/Containerfile.services
Original file line number Diff line number Diff line change
Expand Up @@ -91,30 +91,12 @@ RUN test -f /public/*.wasm
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest

LABEL org.opencontainers.image.source="https://github.com/trustification/trustification"
LABEL description="Trustification"
LABEL io.k8s.description ="Trustification"
LABEL io.k8s.display-name ="Trustification"
LABEL summary ="Trustification"
LABEL name ="Trustification"

RUN microdnf update -y && microdnf install -y nginx jq git postgresql

RUN groupadd -r -g 1001 trustuser \
&& useradd -r -u 1001 -g trustuser -m -d /home/trustuser -s /bin/bash trustuser

ENV NGINX_USER="trustuser" \
NGINXR_UID="1001" \
NGINX_GROUP="atrustuser" \
NGINX_GID="1001"

RUN true \
&& mkdir /public \
&& mkdir /endpoints

RUN mkdir -p /var/lib/nginx/tmp /var/log/nginx \
&& chown -R trustuser:trustuser /var/lib/nginx /var/log/nginx \
&& chmod -R 755 /var/lib/nginx /var/log/nginx

COPY --from=frontendbuilder /public /public/
COPY spog/ui/config/nginx.conf /etc/nginx/nginx.conf

Expand All @@ -130,4 +112,3 @@ RUN mkdir /data
COPY ./data/ds1 /data

ENV RUST_LOG info

0 comments on commit 012e585

Please sign in to comment.