chore: migrate to object_store
Move to the more modern and maintained object_store library to access generic buckets. We should be able also to do streaming of files now, and proceed by implementing paginated results for listings if we want. Fixes #1.
This commit is contained in:
parent
996be0f6df
commit
63029c8b8e
7 changed files with 409 additions and 455 deletions
21
Containerfile
Normal file
21
Containerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
# SPDX-FileCopyrightText: © Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>
|
||||
# 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=<endpoint>,region=<region>,access_key_id=<access_key_id>,secret_access_key=<secret_access_key>}
|
||||
ENV ROCKET_S3_BUCKET={endpoint=,region=,access_key_id=,secret_access_key=}
|
||||
|
||||
CMD ["serves3"]
|
Loading…
Add table
Add a link
Reference in a new issue