Created
April 29, 2019 15:39
-
-
Save theSekyi/89ee8553efadd088dc83387ef3daade9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 python:3.6-slim-stretch | |
| RUN apt-get -y update | |
| RUN apt-get install -y --fix-missing \ | |
| build-essential \ | |
| cmake \ | |
| gfortran \ | |
| git \ | |
| wget \ | |
| curl \ | |
| graphicsmagick \ | |
| libgraphicsmagick1-dev \ | |
| libatlas-dev \ | |
| libavcodec-dev \ | |
| libavformat-dev \ | |
| libgtk2.0-dev \ | |
| libjpeg-dev \ | |
| liblapack-dev \ | |
| libswscale-dev \ | |
| pkg-config \ | |
| python3-dev \ | |
| python3-numpy \ | |
| software-properties-common \ | |
| zip \ | |
| && apt-get clean && rm -rf /tmp/* /var/tmp/* | |
| RUN cd ~ && \ | |
| mkdir -p dlib && \ | |
| git clone -b 'v19.9' --single-branch https://github.com/davisking/dlib.git dlib/ && \ | |
| cd dlib/ && \ | |
| python3 setup.py install --yes USE_AVX_INSTRUCTIONS | |
| # If you wanted to use this Dockerfile to run your own app instead, maybe you would do this: | |
| COPY . /train-data | |
| RUN cd /train-data && \ | |
| pip3 install -r requirements.txt | |
| # RUN whatever_command_you_run_to_start_your_app | |
| CMD cd /train && \ | |
| python3 train.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment