Trying
soaricarus_api CI / Rustfmt (pull_request) Successful in 2m21s
soaricarus_api CI / Test Suite (pull_request) Successful in 3m55s
soaricarus_api CI / Check (pull_request) Successful in 4m15s
soaricarus_api CI / Clippy (pull_request) Successful in 4m22s
soaricarus_api CI / build (pull_request) Successful in 3m48s

This commit is contained in:
2026-07-24 19:12:19 -04:00
parent 6574d0ee8f
commit e2a5e02aad
3 changed files with 109 additions and 133 deletions
+13 -16
View File
@@ -1,21 +1,18 @@
# 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
# Use a base image with a shell (Alpine)
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
# Install necessary tools
RUN apk add --no-cache curl
# Copy the garage binary from the official image
COPY --from=garage-base /garage /usr/local/bin/garage
# Copy the Garage binary from the official image
COPY --from=dxflrs/garage:v2.3.0 /garage /usr/local/bin/garage
# Copy the init script
COPY init-garage.sh /init-garage.sh
RUN chmod +x /init-garage.sh
# Copy the entrypoint script
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Use the init script as the entrypoint
# It will run setup, then exec garage
ENTRYPOINT ["/init-garage.sh"]
# Set the entrypoint
ENTRYPOINT ["/entrypoint.sh"]
# Pass through any arguments to Garage
CMD []