Change name to oxiform
This commit is contained in:
parent
0ade04409e
commit
6f0b2b1cc5
3 changed files with 25 additions and 25 deletions
38
Cargo.lock
generated
38
Cargo.lock
generated
|
@ -227,25 +227,6 @@ version = "1.1.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
|
checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "contact-form"
|
|
||||||
version = "0.3.0"
|
|
||||||
dependencies = [
|
|
||||||
"anyhow",
|
|
||||||
"askama",
|
|
||||||
"askama_axum",
|
|
||||||
"axum",
|
|
||||||
"captcha",
|
|
||||||
"lettre",
|
|
||||||
"serde",
|
|
||||||
"serde_yaml",
|
|
||||||
"time",
|
|
||||||
"tokio",
|
|
||||||
"tower-http 0.4.0",
|
|
||||||
"tracing",
|
|
||||||
"tracing-subscriber",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "crc32fast"
|
name = "crc32fast"
|
||||||
version = "1.3.2"
|
version = "1.3.2"
|
||||||
|
@ -720,6 +701,25 @@ version = "0.1.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39"
|
checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "oxiform"
|
||||||
|
version = "0.4.0"
|
||||||
|
dependencies = [
|
||||||
|
"anyhow",
|
||||||
|
"askama",
|
||||||
|
"askama_axum",
|
||||||
|
"axum",
|
||||||
|
"captcha",
|
||||||
|
"lettre",
|
||||||
|
"serde",
|
||||||
|
"serde_yaml",
|
||||||
|
"time",
|
||||||
|
"tokio",
|
||||||
|
"tower-http 0.4.0",
|
||||||
|
"tracing",
|
||||||
|
"tracing-subscriber",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "percent-encoding"
|
name = "percent-encoding"
|
||||||
version = "2.2.0"
|
version = "2.2.0"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "contact-form"
|
name = "oxiform"
|
||||||
version = "0.3.0"
|
version = "0.4.0"
|
||||||
authors = ["Mo Bitar <mo8it@proton.me>"]
|
authors = ["Mo Bitar <mo8it@proton.me>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -8,8 +8,8 @@ license-file = "LICENSE.txt"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1.0"
|
anyhow = "1.0"
|
||||||
askama = { git = "https://github.com/djc/askama.git" }
|
|
||||||
askama_axum = { git = "https://github.com/djc/askama.git", package = "askama_axum" }
|
askama_axum = { git = "https://github.com/djc/askama.git", package = "askama_axum" }
|
||||||
|
askama = { git = "https://github.com/djc/askama.git" }
|
||||||
axum = { version = "0.6", default-features = false, features = ["http1", "form", "tokio", "macros"] }
|
axum = { version = "0.6", default-features = false, features = ["http1", "form", "tokio", "macros"] }
|
||||||
captcha = { version = "0.0.9", default-features = false }
|
captcha = { version = "0.0.9", default-features = false }
|
||||||
lettre = { version = "0.10", default-features = false, features = ["smtp-transport", "hostname", "tokio1-rustls-tls", "pool", "builder"] }
|
lettre = { version = "0.10", default-features = false, features = ["smtp-transport", "hostname", "tokio1-rustls-tls", "pool", "builder"] }
|
||||||
|
|
|
@ -10,11 +10,11 @@ FROM chef AS builder
|
||||||
COPY --from=planner /app/recipe.json recipe.json
|
COPY --from=planner /app/recipe.json recipe.json
|
||||||
RUN cargo chef cook --release --recipe-path recipe.json
|
RUN cargo chef cook --release --recipe-path recipe.json
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN cargo build --release --bin contact-form
|
RUN cargo build --release --bin oxiform
|
||||||
|
|
||||||
FROM docker.io/library/debian:stable-slim AS runtime
|
FROM docker.io/library/debian:stable-slim AS runtime
|
||||||
WORKDIR app
|
WORKDIR app
|
||||||
ENV CF_DATA_DIR=/volumes/data
|
ENV CF_DATA_DIR=/volumes/data
|
||||||
COPY --from=builder /app/target/release/contact-form /usr/local/bin/contact-form
|
COPY --from=builder /app/target/release/oxiform /usr/local/bin/oxiform
|
||||||
COPY --from=builder /app/static/ ./static/
|
COPY --from=builder /app/static/ ./static/
|
||||||
CMD ["contact-form"]
|
CMD ["oxiform"]
|
||||||
|
|
Loading…
Reference in a new issue