notes/Dockerfile

11 lines
257 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