Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use python -m pip instead #31

Merged
merged 1 commit into from
May 10, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ FROM debian:latest
RUN apt-get -y update && \
apt-get -y install python-pip python3-pip && \
apt-get -y clean && \
pip2 install --upgrade --upgrade-strategy=eager --no-cache-dir pip stored && \
pip3 install --upgrade --upgrade-strategy=eager --no-cache-dir pip stored
python2 -m pip install --upgrade --upgrade-strategy=eager --no-cache-dir pip stored && \
python3 -m pip install --upgrade --upgrade-strategy=eager --no-cache-dir pip stored

# we install these packages at runtime in the entrypoint, but might as well fetch the latest version into the container
RUN mkdir /pip && \
pip2 download -d /pip tensorflow keras h5py model-converters && \
pip3 download -d /pip tensorflow keras h5py model-converters
python2 -m pip download -d /pip tensorflow keras h5py model-converters && \
python3 -m pip download -d /pip tensorflow keras h5py model-converters
# note: don't install model-converters here, since it declares a dependency on tensorflow and keras (so those will be installed too)
# which is a waste of space since they get reinstalled in the entrypoint

Expand Down