portal/Dockerfile

16 lines
290 B
Docker
Raw Normal View History

2023-03-04 23:19:54 -07:00
FROM golang:1-alpine AS build
WORKDIR /src
COPY go.* ./
RUN go mod download -x
COPY cmd ./cmd/
RUN CGO_ENABLED=0 GOOS=linux go install ./...
2023-03-11 13:34:31 -07:00
FROM scratch AS target
2023-03-04 23:19:54 -07:00
WORKDIR /target
COPY web web
COPY --from=build /go/bin/ .
FROM scratch
2023-03-11 13:34:31 -07:00
COPY --from=target /target /
2023-03-04 23:19:54 -07:00
ENTRYPOINT ["/webstat"]