Files
soaricarus_api/garage/Dockerfile
T
phoenix 75f4d9fa76
soaricarus_api CI / Test Suite (pull_request) Successful in 3m36s
soaricarus_api CI / Check (pull_request) Successful in 4m3s
soaricarus_api CI / Rustfmt (pull_request) Successful in 5m49s
soaricarus_api CI / Clippy (pull_request) Successful in 2m24s
soaricarus_api CI / build (pull_request) Successful in 4m32s
Saving changes. No real progress yet
2026-07-24 12:23:48 -04:00

22 lines
641 B
Docker

# FROM dxflrs/garage:v2.3.0
# Stage 1: Extract the garage binary from the official image
FROM dxflrs/garage:v2.3.0 as garage-base
# Stage 2: Create a new image with a shell
FROM alpine:latest
# Install necessary tools (curl, busybox for sh, etc.)
# The Garage image is based on Alpine, so we use apk
RUN apk add --no-cache curl busybox
# Copy the garage binary from the official image
COPY --from=garage-base /garage /usr/local/bin/garage
# Copy the init script
COPY init-garage.sh /init-garage.sh
RUN chmod +x /init-garage.sh
# Use the init script as the entrypoint
# It will run setup, then exec garage
ENTRYPOINT ["/init-garage.sh"]