add docker file

This commit is contained in:
Preston Baxter 2023-08-12 23:05:15 -05:00
parent 9f5fe7b6ad
commit 44589b8413
4 changed files with 40 additions and 3 deletions

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM rust:bookworm as builder
RUN cargo install mdbook
RUN mkdir /build
WORKDIR /build
COPY . .
RUN mdbook build
FROM nginx:alpine
RUN mkdir -p /app/static
COPY --from=builder /build/book /app/static
COPY ./nginx.conf /etc/nginx/nginx.conf

22
nginx.conf Normal file
View File

@ -0,0 +1,22 @@
events {
worker_connections 1024;
}
http {
include mime.types;
sendfile on;
server {
listen 8080;
listen [::]:8080;
resolver 127.0.0.11;
autoindex off;
server_name _;
server_tokens off;
root /app/static;
gzip_static on;
}
}

View File

@ -2,7 +2,7 @@
## Inspiration
Emily: Make the "Emily Moore"
Emily: Make the "Emily Moore"
Preston: Okay
Then Boom, the Emily Moore was born

View File

@ -2,8 +2,8 @@
## Inspiration
Emily: Make the "Emily Moore"
Preston: Okay
Emily: Make the "Emily Moore"
Preston: Okay
Preston _but internally_: This would go great with monster
Then Boom, the Poisoned Emily Moore was born