webfs/Dockerfile

18 lines
314 B
Docker

FROM golang:1-alpine AS build
WORKDIR /src
COPY go.* ./
RUN go mod download -x
COPY cmd ./cmd/
RUN go install ./...
FROM alpine AS runtime
WORKDIR /target
COPY web web
COPY --from=build /go/bin/ .
FROM alpine
RUN apk --no-cache add ffmpeg ffprobe
COPY --from=runtime /target /
WORKDIR /web
ENTRYPOINT ["/webfs"]