19 lines
678 B
Docker
19 lines
678 B
Docker
# server image
|
|
FROM nginx:alpine
|
|
|
|
# set up static content
|
|
WORKDIR /usr/share/nginx
|
|
|
|
COPY ./docker/nginx.conf /etc/nginx/nginx.conf
|
|
COPY ./docker/default.conf /etc/nginx/conf.d/default.conf
|
|
COPY ./docker/variables.conf /etc/nginx/variables.conf
|
|
COPY ./docker/redirect.js /etc/nginx/njs/redirect.js
|
|
COPY ./docker/redirect-page-ids.json /etc/nginx/redirect-page-ids.json
|
|
COPY ./docker/redirects-autogenerated.conf /etc/nginx/redirects-autogenerated.conf
|
|
COPY ./docker/redirects.conf /etc/nginx/redirects.conf
|
|
COPY ./.vuepress/dist ./html
|
|
|
|
# a fuse that checks the external Nginx config files. It fails the image
|
|
# building when the config contains some syntax errors.
|
|
RUN nginx -t
|