commit c667c178732f62cad21fcca1a116312ca0327212 Author: Lauri Võsandi Date: Sat Aug 12 10:46:10 2023 +0300 Initial commit 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"]