notes/Dockerfile
2025-02-03 00:26:07 +10:30

11 lines
256 B
Docker

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.
COPY ./site /usr/share/nginx/html