head-vps/rustfs/Dockerfile

9 lines
668 B
Docker

# syntax=docker/dockerfile:1
# RustFS (S3) for every app on the VPS, plus fnox: the root and app credentials live in fnox.toml,
# decrypted with the host's age key by start.sh / init.sh, never in a Docker env var or on disk.
FROM rustfs/rustfs:1.0.4@sha256:ed9210d6411d77ffceb70d94b964a3cb7d225983368bc25bebe01e995293dcc2
USER root
ADD --checksum=sha256:3d221a6439957f3e425410a4614a45ec02b278e9c20d5838eb7d6d3b3748ac19 \
https://github.com/jdx/fnox/releases/download/v1.43.0/fnox-x86_64-unknown-linux-musl.tar.gz /tmp/fnox.tgz
RUN tar xzf /tmp/fnox.tgz -C /usr/local/bin fnox && rm /tmp/fnox.tgz && fnox --version
COPY fnox.toml start.sh init.sh buckets.conf /head/