Dockerfile pété, README

This commit is contained in:
Justine Pelletreau 2023-01-13 17:24:30 +01:00
parent 77c21ad8df
commit abbb1b6c44
19 changed files with 18 additions and 2 deletions

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM rust:1.66.0-alpine3.17
COPY ./flog /opt/flog
WORKDIR /opt/flog
VOLUME ["/opt/flog/html"]
VOLUME ["/opt/flog/templates"]
RUN apk add build-base make bash
RUN cargo build
EXPOSE 80

View File

@ -1,4 +1,8 @@
# Flog
A simple blog engine based on Flair and SSW.
# TODO
* Pass the directory location as environment vars
* A Dockerfile that works
![](sshot.png)

View File

View File

@ -5,6 +5,10 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "flog"
path = "src/main.rs"
[dependencies]
flair = { git = "https://gitea.squi.fr/Rust/flair.git" }
ssw = { git = "https://gitea.squi.fr/Rust/ssw.git" }

View File

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

View File

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -98,8 +98,8 @@ fn main() {
//Web conf
let webconf = WebsrvConfig {
nbr_of_threads: 3,
bind_addr: String::from("0.0.0.0:8080"),
nbr_of_threads: 10,
bind_addr: String::from("0.0.0.0:80"),
root_folder: String::from("./html"),
};
start_websrv(webconf);