-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from shawncal/shawncal/python3-update
Python3.5 Update, Build speed improvements
- Loading branch information
Showing
17 changed files
with
228 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,31 @@ | ||
FROM ubuntu:xenial | ||
|
||
RUN echo "BUILD MODULE: CameraCapture" | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends libcurl4-openssl-dev python-pip libboost-python-dev && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
apt-get install -y --no-install-recommends \ | ||
python3 \ | ||
python3-pip \ | ||
python3-dev \ | ||
libcurl4-openssl-dev \ | ||
libboost-python-dev \ | ||
libgtk2.0-dev | ||
|
||
# Install Python packages | ||
COPY /build/amd64-requirements.txt ./ | ||
RUN pip install --upgrade pip | ||
RUN pip install --upgrade setuptools && pip install -r amd64-requirements.txt | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends libgtk2.0-dev && \ | ||
rm -rf /var/lib/apt/lists/* | ||
RUN pip3 install --upgrade pip | ||
RUN pip3 install --upgrade setuptools | ||
RUN pip3 install -r amd64-requirements.txt | ||
|
||
RUN pip install trollius tornado | ||
# Cleanup | ||
RUN rm -rf /var/lib/apt/lists/* \ | ||
&& apt-get -y autoremove | ||
|
||
ADD /app/ . | ||
|
||
# Expose the port | ||
EXPOSE 5012 | ||
|
||
ENTRYPOINT [ "python", "-u", "./main.py" ] | ||
ENTRYPOINT [ "python3", "-u", "./main.py" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
azure-iothub-device-client==1.4.0 | ||
azure-iothub-device-client | ||
numpy | ||
opencv-python | ||
requests | ||
opencv-contrib-python | ||
requests | ||
trollius | ||
tornado==4.5.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
azure-iothub-device-client | ||
numpy | ||
opencv-contrib-python | ||
requests | ||
azure-iothub-device-client==1.4.0 | ||
trollius | ||
tornado==4.5.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.