Commit 1abe0440 authored by Martin Cífka's avatar Martin Cífka
Browse files

dockerfile update

parent a1b46147
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -17,3 +17,5 @@ RUN apt-get install -y lib32stdc++6


WORKDIR /workdir

CMD bash docker.sh
+1 −1
Original line number Diff line number Diff line
outfile=$1
outfile=miphoto-exec
buildopts="-std=c++17 -Wno-psabi -static-libstdc++ -DUWS_NO_ZLIB -Isrc/lib/ArduinoJson -Isrc/lib/uSockets -Isrc/lib/uWebSockets -Isrc/lib/easyexif -Lsrc/lib -lpthread -lstdc++fs -l:uSockets.a -l:exif.a"
sources=$(ls src/*.cpp 2>/dev/null | tr '\r\n' ' ') || (echo "No .cpp files found" && exit 1)

+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ done

if [ "$build" = true ] ; then
    sudo docker build -t mi_camera_sdk . 
    sudo docker run -it --rm -v "$PWD":/workdir mi_camera_sdk bash docker.sh $outfile
    sudo docker run -it --rm -v "$PWD":/workdir mi_camera_sdk
fi