1
0
mirror of https://git.cloudron.io/cloudron/minio-app synced 2025-11-04 09:02:35 +00:00

build from source, no more binaries it seems

This commit is contained in:
Girish Ramakrishnan
2025-10-21 11:37:55 +02:00
parent f18b12a5ab
commit 216c70464b
2 changed files with 14 additions and 4 deletions

View File

@@ -1,12 +1,22 @@
FROM cloudron/base:5.0.0@sha256:04fd70dbd8ad6149c19de39e35718e024417c3e01dc9c6637eaf4a41ec4e596c FROM cloudron/base:5.0.0@sha256:04fd70dbd8ad6149c19de39e35718e024417c3e01dc9c6637eaf4a41ec4e596c
RUN mkdir -p /app/code RUN mkdir -p /app/code/go
WORKDIR /app/code WORKDIR /app/code
# Go (https://golang.org/dl/)
ARG GOVERSION=1.25.1
ENV GOROOT /usr/local/go-${GOVERSION}
ENV PATH $GOROOT/bin:$PATH
ENV GOPATH=/app/code/go
RUN mkdir -p /usr/local/go-${GOVERSION} && \
curl -L https://storage.googleapis.com/golang/go${GOVERSION}.linux-amd64.tar.gz | tar zxf - -C /usr/local/go-${GOVERSION} --strip-components 1
RUN ln -sf /usr/local/go-${GOVERSION} /usr/local/go
# renovate: datasource=github-releases depName=minio/minio versioning=regex:^RELEASE\.(?<major>\d{4})-(?<minor>\d{2})-(?<patch>\d{2})T(?<build>.+) # renovate: datasource=github-releases depName=minio/minio versioning=regex:^RELEASE\.(?<major>\d{4})-(?<minor>\d{2})-(?<patch>\d{2})T(?<build>.+)
ARG MINIO_VERSION=RELEASE.2025-10-15T17-29-55Z ARG MINIO_VERSION=RELEASE.2025-10-15T17-29-55Z
RUN go install github.com/minio/minio@${MINIO_VERSION} && \
RUN wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio.${MINIO_VERSION} -O /app/code/minio && chmod +x /app/code/minio go clean -cache -modcache -testcache
# Latest CLI # Latest CLI
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /app/code/mc && chmod +x /app/code/mc RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /app/code/mc && chmod +x /app/code/mc

View File

@@ -27,5 +27,5 @@ echo "==> Changing ownership"
[[ $(stat --format '%U' /app/data/data) != "cloudron" ]] && chown -R cloudron:cloudron /app/data [[ $(stat --format '%U' /app/data/data) != "cloudron" ]] && chown -R cloudron:cloudron /app/data
echo "==> Starting minio" echo "==> Starting minio"
exec /usr/local/bin/gosu cloudron:cloudron /app/code/minio --quiet ${CLOUDRON_MINIO_STARTUP_ARGS} --address :9000 --console-address :8000 exec /usr/local/bin/gosu cloudron:cloudron /app/code/go/bin/minio --quiet ${CLOUDRON_MINIO_STARTUP_ARGS} --address :9000 --console-address :8000