federated-dash/Dockerfile

13 lines
277 B
Docker
Raw Normal View History

2024-06-26 22:21:13 +00:00
FROM golang:1.22-alpine as build
WORKDIR /build
COPY . .
RUN go mod download
RUN go build -o=./fed-dashboard ./cmd/web
FROM gcr.io/distroless/static-debian11
COPY --from=build /build/fed-dashboard .
COPY --from=build /build/ui/ /ui/
EXPOSE 8080
ENTRYPOINT ["/fed-dashboard"]