midr @ db7e822dda56d32135eca6d3e3211a50cf93d31a

 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