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.
21 lines
610 B
Docker
21 lines
610 B
Docker
# 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"]
|