-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hotfix support docker image for non-root nginx use (#3396)
* Add docker image for nginx non-root using * Change default Dockerfile for non-root use Swipe nginx base image on nginx-unprivileged * Add nginx-unprivileged for Dockerfile-full * Update version to 5.7.4
- Loading branch information
1 parent
2cd6c09
commit e7bfb4a
Showing
3 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ build/ | |
*.iws | ||
*.log | ||
.vscode | ||
.devcontainer | ||
|
||
coverage | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
FROM nginx:alpine | ||
FROM nginxinc/nginx-unprivileged:alpine | ||
|
||
LABEL maintainer="Andrei Varabyeu <andrei_varabyeu@epam.com>" | ||
LABEL version=5.7.4 | ||
|
||
ENV APP_DOWNLOAD_URL https://github.com/reportportal/service-ui/releases/download/v5.7.4 | ||
|
||
USER root | ||
ADD ${APP_DOWNLOAD_URL}/ui.tar.gz / | ||
|
||
RUN tar -zxvf ui.tar.gz -C /usr/share/nginx/html && rm -f ui.tar.gz | ||
RUN rm /etc/nginx/conf.d/default.conf | ||
COPY nginx.conf /etc/nginx/nginx.conf | ||
|
||
EXPOSE 8080 | ||
USER $UID | ||
|
||
EXPOSE 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters