Initial commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lauri Võsandi 2023-08-12 10:46:10 +03:00
commit c667c17873
2 changed files with 22 additions and 0 deletions

2
.drone.yml Normal file
View File

@ -0,0 +1,2 @@
kind: template
load: docker-multiarch.yaml

20
Dockerfile Normal file
View File

@ -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"]