This commit is contained in:
2024-02-08 13:58:52 -08:00
parent babb807a91
commit 4e8f3bc5f4
13 changed files with 278 additions and 220 deletions

15
.docker/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
####
##
## Build a docker image out of the static html book generated by mdbook.
## Used by automation. Can be built manually for testing.
##
####
FROM alpine:3.17
RUN apk add nginx supervisor
RUN mkdir -p /var/www
RUN rm -rf /etc/nginx
COPY build /var/www/build
COPY .conf/nginx /etc/nginx
COPY .conf/supervisor/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
EXPOSE 80