From c667c178732f62cad21fcca1a116312ca0327212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Sat, 12 Aug 2023 10:46:10 +0300 Subject: [PATCH] Initial commit --- .drone.yml | 2 ++ Dockerfile | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..c650ef9 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,2 @@ +kind: template +load: docker-multiarch.yaml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8e94932 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM alpine:3 as build +RUN apk --no-cache add build-base +RUN apk --no-cache add cmake +RUN apk --no-cache add libjpeg-turbo-dev +RUN apk --no-cache add linux-headers +RUN apk --no-cache add openssl +RUN wget -qO- https://github.com/jacksonliam/mjpg-streamer/archive/master.tar.gz | tar xz +WORKDIR /mjpg-streamer-master/mjpg-streamer-experimental +RUN make +RUN make install + +FROM alpine:3 +COPY --from=build /usr/local/bin /usr/local/bin +COPY --from=build /usr/local/lib /usr/local/lib +COPY --from=build /usr/local/share /usr/local/share +RUN apk --no-cache add libjpeg v4l-utils +EXPOSE 8080 +ENTRYPOINT ["mjpg_streamer"] +CMD ["-i", "input_uvc.so", \ + "-o", "output_http.so"]