14 lines
233 B
Plaintext
14 lines
233 B
Plaintext
|
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"]
|