blob: a479f117f51dc65180e3892a6a91da8781ec6118 [file] [log] [blame]
# Source: https://gist.github.com/laurentbel/c4c7696890fc71c8061172a932eb52e4
FROM nginx:1.25.3
RUN apt-get update -y && apt-get install -y apache2-utils && rm -rf /var/lib/apt/lists/*
ENV BASIC_USERNAME=username
ENV BASIC_PASSWORD=password
ENV FORWARD_HOST=google.com
ENV FORWARD_PORT=80
WORKDIR /
COPY nginx-basic-auth.conf nginx-basic-auth.conf
COPY run.sh ./
RUN chmod 0755 ./run.sh
CMD [ "./run.sh" ]