From da992500f806bb87b06559d920ee12b7680955ee Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Thu, 16 Jun 2022 16:32:31 +0200 Subject: feat: Add worker Add a simple worker to manage a work queue. Right now, it is bit brittled and has no test coverage yet, but it works. Also moved from pico.css to bulma, I like the idea of classes approach of pico but for me bulma yields a better result. --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') 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 -- cgit v1.2.3