webfs/Dockerfile

19 lines
369 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:edge AS runtime
WORKDIR /target
COPY web web
COPY --from=build /go/bin/ .
# Alpine edge has ffmpeg 6 with jpeg rotation bugfix
FROM alpine:edge
RUN apk --no-cache add ffmpeg
COPY --from=runtime /target /
WORKDIR /web
ENTRYPOINT ["/webfs"]