Change name to oxiform

This commit is contained in:
Mo 2023-02-26 19:58:38 +01:00
parent 0ade04409e
commit 6f0b2b1cc5
3 changed files with 25 additions and 25 deletions

38
Cargo.lock generated
View file

@ -227,25 +227,6 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
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]]
name = "crc32fast"
version = "1.3.2"
@ -720,6 +701,25 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
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]]
name = "percent-encoding"
version = "2.2.0"

View file

@ -1,6 +1,6 @@
[package]
name = "contact-form"
version = "0.3.0"
name = "oxiform"
version = "0.4.0"
authors = ["Mo Bitar <mo8it@proton.me>"]
edition = "2021"
readme = "README.md"
@ -8,8 +8,8 @@ license-file = "LICENSE.txt"
[dependencies]
anyhow = "1.0"
askama = { git = "https://github.com/djc/askama.git" }
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"] }
captcha = { version = "0.0.9", default-features = false }
lettre = { version = "0.10", default-features = false, features = ["smtp-transport", "hostname", "tokio1-rustls-tls", "pool", "builder"] }

View file

@ -10,11 +10,11 @@ FROM chef AS builder
COPY --from=planner /app/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json
COPY . .
RUN cargo build --release --bin contact-form
RUN cargo build --release --bin oxiform
FROM docker.io/library/debian:stable-slim AS runtime
WORKDIR app
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/
CMD ["contact-form"]
CMD ["oxiform"]