Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Run nginx as non-root
Browse files Browse the repository at this point in the history
Base image is now https://hub.docker.com/r/nginxinc/nginx-unprivileged

Image doesn't have the "official" tag on DockerHub but it's "owned and
maintained by NGINX"

> this image is as "official" as an image without the official images
> tag can be. It's not hosted on the official Docker images library,
> true, but it is owned and maintained by NGINX on both GitHub and
> Docker Hub.

See: nginxinc/docker-nginx-unprivileged#19 (comment)

Part of ticket: https://trello.com/c/x7zhOJ4N/223-run-webapp-as-non-root-not-on-port-80
  • Loading branch information
xoen committed May 31, 2019
1 parent c61d82e commit a47c554
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginx:stable-alpine
FROM nginxinc/nginx-unprivileged:stable-alpine
COPY www /usr/share/nginx/html

EXPOSE 80
EXPOSE 8080
3 changes: 2 additions & 1 deletion deploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"disable_authentication": false,
"allowed_ip_ranges": [
"DOM1"
]
],
"port": 8080
}

0 comments on commit a47c554

Please sign in to comment.