Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion go/infra/docker/feature-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.26
FROM golang:1.26-trixie AS builder
ENV GOTOOLCHAIN=auto

# Update the package list and install the ca-certificates package
Expand All @@ -24,6 +24,21 @@ RUN find ./protos -name "*.proto" \
# Build the Go application
RUN go build -o feast ./go/main.go

# Ship only the server binary on a slim base, so the Go toolchain, compilers and
# kernel headers of the build image are not part of the published image. The
# runtime uses the same Debian release as the builder, so the cgo-linked binary
# finds a matching glibc.
FROM debian:trixie-slim

# Update the package list and install the ca-certificates package
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates \
&& rm -rf /var/lib/apt/lists/*

# Set the current working directory inside the container
WORKDIR /app

COPY --from=builder /app/feast ./feast

# Expose ports
EXPOSE 8080

Expand Down
Loading