midr @ 40d80bde511a7a76a0f5a3c16afc9eef2e5972e2

 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