Skip to content

Commit

Permalink
Fixes privileged user issue in container (#14)
Browse files Browse the repository at this point in the history
* Fixes privileged user issue in container

* Fixes ordering
  • Loading branch information
StrongestNumber9 authored Jun 13, 2024
1 parent 0437af0 commit 3473741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"]

0 comments on commit 3473741

Please sign in to comment.