Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes privileged user issue in container #14

Merged
merged 2 commits into from
Jun 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]