Director/Containerfile

14 lines
233 B
Plaintext
Raw Permalink Normal View History

2025-01-02 17:18:29 +01:00
FROM docker.io/golang:1.23 as builder
WORKDIR /app
COPY ./ ./
RUN go mod download
RUN go build -o director ./cmd/director
FROM docker.io/alpine:3.21
WORKDIR /app
COPY --from=builder /app/director .
EXPOSE 8080
CMD ["./director"]