add docker file
This commit is contained in:
parent
9f5fe7b6ad
commit
44589b8413
|
@ -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
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
## Inspiration
|
||||
|
||||
Emily: Make the "Emily Moore"
|
||||
Emily: Make the "Emily Moore"
|
||||
Preston: Okay
|
||||
|
||||
Then Boom, the Emily Moore was born
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue