Sign inSign up

adorsys/nginx

By adorsys

•Updated 1 day ago

Nginx base image

Image
0

100K+

adorsys/nginx repository overview

⁠adorsys/nginx

https://hub.docker.com/r/adorsys/nginx/⁠

⁠Description

Provides nginx. If possible use the ubi flavor based on the official nginx:alpine⁠ docker image.

For secure rootless environments nginx listen on port 8080 by default.

⁠Example Dockerfile

Copy your files to distribute just to .. It points the web root directory of the nginx container

FROM adorsys/nginx

COPY dist/ .

⁠Entrypoint hooks

If you need to run addition logic on container start, e.g. correct backend url for angular you can just copy your shell script to /docker-entrypoint.d/.

Before you do this manually, checkout best-practice example how to run angular apps inside docker without modify the source at container start: https://github.com/adorsys/example-angular⁠

⁠Example

angular-url.sh

if [ -f main.js ]; then
  sed -i -e \
    's#___SB_BACKEND_URL___#'"$BACKEND_URL"'#g' \
    main.js
else
  sed -i -e \
    's#___SB_BACKEND_URL___#'"$BACKEND_URL"'#g' \
    main.*.js
fi
FROM adorsys/nginx

COPY dist/ .
COPY angular-url.sh /docker-entrypoint.d/

The current directory points to the web http root directory.

⁠Tags

NameDescriptionSize
centosBased on RH SCL nginx⁠ 1.16
alpineBased on nginx:alpine⁠
ubiBased on RHEL8 UBI⁠
latestAlias for ubi

Tag summary

Content type

Image

Digest

sha256:a64e4825d…

Size

52.9 MB

Last updated

almost 4 years ago

docker pull adorsys/nginx