aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..6c5d799
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,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