Compare commits
2 commits
73eebdca94
...
6baac1ac79
Author | SHA1 | Date | |
---|---|---|---|
6baac1ac79 | |||
a5d3f96a76 |
4 changed files with 36 additions and 21 deletions
31
Cargo.lock
generated
31
Cargo.lock
generated
|
@ -44,9 +44,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "actix-http"
|
||||
version = "3.5.1"
|
||||
version = "3.6.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "129d4c88e98860e1758c5de288d1632b07970a16d59bdf7b8d66053d582bb71f"
|
||||
checksum = "d223b13fd481fc0d1f83bb12659ae774d9e3601814c68a0bc539731698cca743"
|
||||
dependencies = [
|
||||
"actix-codec",
|
||||
"actix-rt",
|
||||
|
@ -153,9 +153,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "actix-web"
|
||||
version = "4.4.1"
|
||||
version = "4.5.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e43428f3bf11dee6d166b00ec2df4e3aa8cc1606aaa0b7433c146852e2f4e03b"
|
||||
checksum = "43a6556ddebb638c2358714d853257ed226ece6023ef9364f23f0c70737ea984"
|
||||
dependencies = [
|
||||
"actix-codec",
|
||||
"actix-http",
|
||||
|
@ -1244,9 +1244,9 @@ checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848"
|
|||
|
||||
[[package]]
|
||||
name = "reqwest"
|
||||
version = "0.11.23"
|
||||
version = "0.11.24"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "37b1ae8d9ac08420c66222fb9096fc5de435c3c48542bc5336c51892cffafb41"
|
||||
checksum = "c6920094eb85afde5e4a138be3f2de8bbdf28000f0029e72c45025a56b042251"
|
||||
dependencies = [
|
||||
"async-compression",
|
||||
"base64",
|
||||
|
@ -1271,6 +1271,7 @@ dependencies = [
|
|||
"serde",
|
||||
"serde_json",
|
||||
"serde_urlencoded",
|
||||
"sync_wrapper",
|
||||
"system-configuration",
|
||||
"tokio",
|
||||
"tokio-rustls",
|
||||
|
@ -1384,18 +1385,18 @@ checksum = "bebd363326d05ec3e2f532ab7660680f3b02130d780c299bca73469d521bc0ed"
|
|||
|
||||
[[package]]
|
||||
name = "serde"
|
||||
version = "1.0.195"
|
||||
version = "1.0.196"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "63261df402c67811e9ac6def069e4786148c4563f4b50fd4bf30aa370d626b02"
|
||||
checksum = "870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32"
|
||||
dependencies = [
|
||||
"serde_derive",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "serde_derive"
|
||||
version = "1.0.195"
|
||||
version = "1.0.196"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "46fe8f8603d81ba86327b23a2e9cdf49e1255fb94a4c5f297f6ee0547178ea2c"
|
||||
checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
|
@ -1404,9 +1405,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "serde_json"
|
||||
version = "1.0.111"
|
||||
version = "1.0.113"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "176e46fa42316f18edd598015a5166857fc835ec732f5215eac6b7bdbf0a84f4"
|
||||
checksum = "69801b70b1c3dac963ecb03a364ba0ceda9cf60c71cfe475e99864759c8b8a79"
|
||||
dependencies = [
|
||||
"itoa",
|
||||
"ryu",
|
||||
|
@ -1534,6 +1535,12 @@ dependencies = [
|
|||
"unicode-ident",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "sync_wrapper"
|
||||
version = "0.1.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160"
|
||||
|
||||
[[package]]
|
||||
name = "system-configuration"
|
||||
version = "0.5.1"
|
||||
|
|
|
@ -4,11 +4,11 @@ version = "0.1.0"
|
|||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
actix-web = { version = "4.4.1", default-features = false, features = ["macros", "compress-brotli", "compress-gzip", "cookies"]}
|
||||
actix-web = { version = "4.5.1", default-features = false, features = ["macros", "compress-brotli", "compress-gzip", "cookies"]}
|
||||
actix-files = "0.6.5"
|
||||
tera = "1.19.1"
|
||||
serde = { version = "1.0.195", features = ["derive"] }
|
||||
reqwest = { version = "0.11.23", default-features = false, features = ["rustls-tls", "gzip"] }
|
||||
serde_json = "1.0.111"
|
||||
serde = { version = "1.0.196", features = ["derive"] }
|
||||
reqwest = { version = "0.11.24", default-features = false, features = ["rustls-tls", "gzip"] }
|
||||
serde_json = "1.0.113"
|
||||
base64 = "0.21.7"
|
||||
mime = "0.3.17"
|
||||
|
|
16
Dockerfile
16
Dockerfile
|
@ -1,17 +1,25 @@
|
|||
FROM rust:bookworm as builder
|
||||
FROM rust:alpine as builder
|
||||
|
||||
RUN apk add musl-dev
|
||||
|
||||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
|
||||
ARG RUSTFLAGS="-C target-feature=+crt-static"
|
||||
|
||||
COPY Cargo.toml /app
|
||||
COPY Cargo.lock /app
|
||||
COPY src /app/src
|
||||
COPY templates /app/templates
|
||||
RUN cargo build --release
|
||||
|
||||
FROM gcr.io/distroless/cc-debian12:latest
|
||||
RUN cargo build --release --target=x86_64-unknown-linux-musl
|
||||
|
||||
RUN strip -s /app/target/x86_64-unknown-linux-musl/release/paste-frontend && \
|
||||
strip -R .comment -R .note -R .note.ABI-tag /app/target/x86_64-unknown-linux-musl/release/paste-frontend
|
||||
|
||||
FROM scratch
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/target/release/paste-frontend /app/paste-frontend
|
||||
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/paste-frontend /app/paste-frontend
|
||||
ADD templates /app/templates
|
||||
ADD static /app/static
|
||||
EXPOSE 8080
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
<br />
|
||||
<br />
|
||||
<div class="fixed bottom-4 left-0 w-screen h-12 md:flex md:items-center md:justify-between md:p-6">
|
||||
<span class="text-sm text-gray-400 sm:text-center">©2023 Maestro Creativescape.</span>
|
||||
<span class="text-sm text-gray-400 sm:text-center">©2024 Maestro Creativescape.</span>
|
||||
<ul class="flex flex-wrap items-center mt-3 text-sm text-gray-400 sm:mt-0">
|
||||
<li>
|
||||
<a href="https://baalajimaestro.me" class="mr-4 hover:underline md:mr-6 ">Home</a>
|
||||
|
|
Loading…
Reference in a new issue