forked from fluid-cloudnative/fluid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.application
More file actions
36 lines (29 loc) · 1.51 KB
/
Dockerfile.application
File metadata and controls
36 lines (29 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Build the fluidapp-controller manager binary
# golang:1.24.12-bookworm
FROM golang:1.24.12-bookworm@sha256:1c64c586e1cf9dc4c394c5896ec574659c792a0840f4fa0eb54a88de146e978b as builder
WORKDIR /go/src/github.com/fluid-cloudnative/fluid
COPY . .
ARG FLUID_VERSION
RUN make application-controller-build && \
cp bin/fluidapp-controller /go/bin/fluidapp-controller
RUN bash hack/helm/pin_runtime_chart_version.sh "${FLUID_VERSION}"
# Debug
#RUN go install github.com/go-delve/delve/cmd/dlv@v1.8.2
# alpine:3.23.3
FROM alpine:3.23.3@sha256:25109184c71bdad752c8312a8623239686a9a2071e8825f20acb8f2198c3f659
RUN apk add --update bash curl wget iproute2 libc6-compat tzdata vim && \
rm -rf /var/cache/apk/* && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone
ARG TARGETARCH
ARG HELM_VERSION
RUN wget -O helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz https://github.com/fluid-cloudnative/helm/releases/download/${HELM_VERSION}/helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz && \
tar -xvf helm-${HELM_VERSION}-linux-${TARGETARCH}.tar.gz && \
mv linux-${TARGETARCH}/helm /usr/local/bin/ddc-helm && \
chmod u+x /usr/local/bin/ddc-helm && \
rm -f ${HELM_VERSION}-linux-${TARGETARCH}.tar.gz
COPY --from=builder /go/src/github.com/fluid-cloudnative/fluid/charts/ /charts
COPY --from=builder /go/bin/fluidapp-controller /usr/local/bin/fluidapp-controller
#COPY --from=builder /go/bin/dlv /usr/local/bin/dlv
RUN chmod -R u+x /usr/local/bin/
CMD ["fluidapp-controller", "start"]