Dockerfile pété, README
This commit is contained in:
parent
77c21ad8df
commit
abbb1b6c44
8
Dockerfile
Normal file
8
Dockerfile
Normal 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
|
@ -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
|
||||
|
||||

|
||||
|
0
Cargo.lock → flog/Cargo.lock
generated
0
Cargo.lock → flog/Cargo.lock
generated
@ -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" }
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
@ -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);
|
Loading…
x
Reference in New Issue
Block a user