diff --git a/Cargo.lock b/Cargo.lock index 894b20b..b7f7ac1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2960,7 +2960,7 @@ dependencies = [ [[package]] name = "serves3" -version = "1.1.2" +version = "1.2.0" dependencies = [ "anyhow", "bytes", diff --git a/Cargo.toml b/Cargo.toml index 62d2b60..be1806e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ [package] name = "serves3" -version = "1.1.2" +version = "1.2.0" authors = ["Matteo Settenvini "] description = "A very simple proxy to browse files from private S3 buckets" diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..7753d0f --- /dev/null +++ b/Containerfile @@ -0,0 +1,21 @@ +# SPDX-FileCopyrightText: © Matteo Settenvini +# SPDX-License-Identifier: EUPL-1.2 + +FROM docker.io/rust:1.88-alpine3.20 + +RUN apk --no-cache add musl-dev && \ + cargo install --path . + +FROM docker.io/alpine:3.20 + +COPY --from=rust /usr/local/cargo/bin/serves3 /usr/bin/serves3 + +EXPOSE 8000 + +ENV ROCKET_PROFILE=production + +# This env variable should be in the format: +# {endpoint=,region=,access_key_id=,secret_access_key=} +ENV ROCKET_S3_BUCKET={endpoint=,region=,access_key_id=,secret_access_key=} + +CMD ["serves3"] diff --git a/README.md b/README.md index a8817a8..1e663fb 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,11 @@ serves3 # Changelog +## 1.2.0 + +* Migrate to [object_store](https://crates.io/crates/object_store) +* Bump dependencies + ## 1.1.2 * Bump dependencies, adopt Rust 2024 edition