webfs/Dockerfile

16 lines
279 B
Docker
Raw Normal View History

2023-03-04 11:49:39 -07:00
FROM golang:1 AS build
2023-03-04 11:17:11 -07:00
WORKDIR /src
COPY go.* ./
COPY pkg ./pkg/
COPY cmd ./cmd/
RUN go get ./...
2023-03-04 11:49:39 -07:00
RUN CGO_ENABLED=0 GOOS=linux go install ./...
FROM alpine AS runtime
WORKDIR /target
COPY --from=build /go/bin/ .
FROM scratch
COPY --from=runtime /target /
ENTRYPOINT ["/webfs"]