-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
27 lines (18 loc) · 821 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM vjrantal/azure-iot-sdk-python:latest as azure-iot-sdk-python
FROM vjrantal/darknet:latest as darknet
# Was planning to use alpine as the runtime from image, but
# some required packages were missing from the default
# repository so keeping it simple and going with ubuntu for now.
FROM vjrantal/iot-edge-darknet-base
WORKDIR /
# Copy in required dependencies
COPY --from=azure-iot-sdk-python /azure-iot-sdk-python/device/samples/iothub_client.so .
COPY --from=darknet /darknet/libdarknet.so /usr/lib/
COPY --from=darknet /darknet/python/darknet.py .
COPY --from=darknet /darknet/yolo.weights .
COPY --from=darknet /darknet/cfg ./cfg
COPY --from=darknet /darknet/data ./data
RUN apt-get update
RUN apt-get install -y libboost-python1.58.0 python-opencv libcurl3
COPY *.py /
CMD ["python", "-u", "module.py"]