-
Notifications
You must be signed in to change notification settings - Fork 820
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (39 loc) · 1.23 KB
/
Dockerfile
File metadata and controls
51 lines (39 loc) · 1.23 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Todo(alex): We should add UI into the image when UI is done
FROM --platform=${BUILDPLATFORM} golang:1.25-bookworm AS flytebuilder
ARG TARGETARCH
ENV GOARCH="${TARGETARCH}"
ENV GOOS=linux
ENV CGO_ENABLED=0
WORKDIR /flyteorg/build
COPY dataproxy dataproxy
COPY executor executor
COPY flytecopilot flytecopilot
COPY flyteidl2 flyteidl2
COPY flyteplugins flyteplugins
COPY flytestdlib flytestdlib
COPY gen/go gen/go
COPY actions actions
COPY app app
COPY events events
COPY runs runs
COPY cache_service cache_service
COPY secret secret
COPY go.mod go.sum ./
RUN go mod download
COPY manager manager
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/root/go/pkg/mod \
go build -v -o dist/flyte ./manager/cmd/
FROM debian:bookworm-slim
ARG FLYTE_VERSION
ENV FLYTE_VERSION="${FLYTE_VERSION}"
ENV DEBCONF_NONINTERACTIVE_SEEN=true
ENV DEBIAN_FRONTEND=noninteractive
# Install core packages
RUN apt-get update && apt-get install --no-install-recommends --yes \
ca-certificates \
tini \
&& rm -rf /var/lib/apt/lists/*
# Copy compiled executable into image
COPY --from=flytebuilder /flyteorg/build/dist/flyte /usr/local/bin/
# Set entrypoint
ENTRYPOINT [ "/usr/bin/tini", "-g", "--", "/usr/local/bin/flyte" ]