From 34737419a61dbed9383e3872d0993dfc64366cd7 Mon Sep 17 00:00:00 2001 From: Strongest Number 9 <16169054+StrongestNumber9@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:53:52 +0300 Subject: [PATCH] Fixes privileged user issue in container (#14) * Fixes privileged user issue in container * Fixes ordering --- docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 71e08ef..3c1cecf 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -3,7 +3,7 @@ FROM centos:7 RUN yum -y install java-11-openjdk \ && yum clean all -COPY rpm/target/rpm/com.teragrep-pth_05/RPMS/x86_64/com.teragrep-pth_05-*.rpm /pth_05.rpm +COPY rpm/target/rpm/com.teragrep-pth_05/RPMS/noarch/com.teragrep-pth_05-*.rpm /pth_05.rpm RUN yum install -y /pth_05.rpm && rm -f /pth_05.rpm && yum clean all ENV PTH_05_ENDPOINT="http://0.0.0.0:8080" @@ -18,5 +18,5 @@ ENV PTH_05_PROVIDER_ENDPOINT="https://s3.default.tld:443" COPY docker/docker-entrypoint.sh /docker-entrypoint.sh RUN chmod +x /docker-entrypoint.sh - +USER srv-s3gw ENTRYPOINT ["/docker-entrypoint.sh"]