midr @ da992500f806bb87b06559d920ee12b7680955ee

 1FROM alpine:3 as build
 2
 3ENV GOPROXY=direct
 4
 5WORKDIR /opt/midr
 6
 7RUN apk add go git
 8COPY . .
 9
10RUN go build -v .
11
12FROM alpine:3
13
14WORKDIR /opt/midr
15
16RUN apk add --no-cache ffmpeg yt-dlp
17
18COPY --from=build /opt/midr/midr .
19COPY --from=build /opt/midr/templates ./templates
20COPY --from=build /opt/midr/assets ./assets
21
22ENTRYPOINT ./midr