Created
July 25, 2016 09:02
-
-
Save veesa/2a8e4aecb12c7e4c808716a306d03c37 to your computer and use it in GitHub Desktop.
Sample Dockerfile for PeARS
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 debian:latest | |
MAINTAINER Veesa Norman <[email protected]> | |
RUN apt-get update && apt-get install -y apt-utils && apt-get install -y git | |
CMD git clone -b development https://github.com/PeARSearch/PeARS.git | |
CMD cd PeARS | |
RUN apt-get install -y python-pip | |
CMD pip install requirements.txt | |
CMD apt-get install -y wget | |
CMD wget http://clic.cimec.unitn.it/~aurelie.herbelot/openvectors.dump.bz2 | |
CMD ./uncompress_db openvectors.dump.bz2 | |
EXPOSE 5000 | |
CMD cd ~/PeARS | |
CMD ["/usr/bin/python2", "./run.py", "-D"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just ran into your Dockerfile, and I see one problem : you should have only one
CMD
instruction, because only the lastCMD
instruction will be ran.So, instead of having multiples
CMD
, do all the commands inRUN
instructions. And to avoid having to much layers, chain your commands with&&
. So you'll haveRUN apt-get update && apt-get install -y apt-utils && apt-get install -y git python-pip wget
,RUN git clone -b development https://github.com/PeARSearch/PeARS.git && cd PeARS
, and so on.Hoping it will help!