
This image can be used to put basic auth in front of a service. Change-Id: I8105da864e1b39ccd6af8ba646133fa7f24b9317
12 lines
261 B
Docker
12 lines
261 B
Docker
FROM nginx:alpine
|
|
|
|
ENV BASIC_AUTH_USERNAME="username"
|
|
ENV BASIC_AUTH_PASSWORD="password"
|
|
|
|
RUN apk add --update --no-cache apache2-utils
|
|
|
|
COPY assets/default.conf /etc/nginx/conf.d/default.conf
|
|
COPY assets/entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT /entrypoint.sh
|