2025-02-03 00:26:07 +10:30
|
|
|
FROM nginx:alpine
|
|
|
|
|
|
|
|
|
|
# Replace default config.
|
|
|
|
|
RUN rm /etc/nginx/conf.d/default.conf
|
|
|
|
|
COPY nginx.conf /etc/nginx/conf.d/auth.conf
|
|
|
|
|
|
|
|
|
|
# Add user credentials.
|
|
|
|
|
COPY nginx.htpasswd /etc/nginx/auth.htpasswd
|
|
|
|
|
|
|
|
|
|
# Copy the HTML files.
|
2025-02-03 23:26:39 +10:30
|
|
|
#COPY ./site /usr/share/nginx/html
|