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