Skip to content

Commit 553bed9

Browse files
committed
version, cleanup
1 parent 2721d9c commit 553bed9

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "zpi"
3-
version = "1.0.10"
3+
version = "1.1.0"
44
edition = "2024"
55

66
[dependencies]

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN mkdir src && \
1212
cargo build --release && \
1313
rm -rf src .cargo/
1414

15-
COPY ./static ./static
15+
COPY ./templates ./templates
1616
COPY ./src ./src
1717

1818
# make cargo detect new files
@@ -21,7 +21,9 @@ RUN cargo build --release
2121

2222
FROM alpine:latest
2323

24-
RUN apk add --no-cache openssl
24+
COPY ./static ./static
25+
26+
RUN apk add --no-cache openssl imagemagick
2527

2628
COPY --from=builder /usr/src/zpi/target/release/zpi /usr/local/bin/
2729

src/image.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use std::{
22
env,
33
io::ErrorKind,
44
path::PathBuf,
5-
process::ExitStatus,
65
sync::{Arc, LazyLock},
76
};
87

@@ -101,7 +100,7 @@ impl DataImage {
101100
/// resize the image and save
102101
pub async fn save_size(&self, size: u32) -> Result<(), AppError> {
103102
// magick 102 -coalesce -resize "64x64^" -gravity center -crop "64x64+0+0" +repage out.webp
104-
let output = Command::new("")
103+
let output = Command::new(MAGICK_PATH.as_str())
105104
.args([
106105
self.profile
107106
.path_orig()

0 commit comments

Comments
 (0)