Create container

This commit is contained in:
Evie Viau-Chow-Stuart 2023-02-03 21:46:30 -08:00
parent a67701039d
commit 7f4132e486
Signed by: evie
GPG key ID: 928652CDFCEC8099
3 changed files with 20 additions and 0 deletions

3
.dockerignore Normal file
View file

@ -0,0 +1,3 @@
/target
/static
/.git

View file

@ -1,4 +1,10 @@
*:80 {
route /favicon.ico {
file_server {
root ./static
}
}
route /static/* {
uri strip_prefix /static
file_server {

11
Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM rust:1.67-slim as build
COPY ./ ./
RUN cargo build --release
FROM debian:stable-slim
COPY --from=build ./target/release/personal-site .
CMD ["./personal-site"]