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
22 lines
641 B
Docker
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"]
|