Created
April 6, 2017 22:13
-
-
Save jleeothon/db40edd7e4e9b3bcf4385338c429904a to your computer and use it in GitHub Desktop.
Dockerfile that installs python3.4 but not python3.4-config
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
FROM ubuntu:14.04.5 | |
COPY files /etc/files | |
RUN \ | |
export BUILD_DEPS="\ | |
build-essential \ | |
" && \ | |
export RUN_DEPS="\ | |
libffi6 \ | |
libxml2 \ | |
python3-pip \ | |
python3.4 \ | |
python3.4-dev \ | |
" && \ | |
apt-get update -y && \ | |
apt-get install -y --no-install-recommends $BUILD_DEPS $RUN_DEPS && \ | |
# Install Python dependencies | |
pip3 install -r /etc/files/requirements.txt && \ | |
# Remove build dependencies, lists for apt-get | |
apt-get purge -y --auto-remove $BUILD_DEPS && \ | |
ls -lR /etc/apt/sources.list.d >&2 && \ | |
rm -rf /var/lib/apt/lists/* /etc/apt/sources.list.d/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment