Created
February 4, 2015 05:18
-
-
Save stevepereira/a9b380ec8e9532e21aa2 to your computer and use it in GitHub Desktop.
Build and run Fig from Dockerfile
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
#!/bin/bash | |
set -e | |
DIR="$(dirname "$0")"/.. | |
docker build -t fig $DIR | |
exec docker run -i -t -v /var/run/docker.sock:/var/run/docker.sock -v `pwd`:/workdir -w /workdir fig $@ |
cd ../afigproject
../fig/script/dev up
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FROM debian:wheezy
RUN apt-get update -qq && apt-get install -qy python python-pip python-dev git && apt-get clean
RUN useradd -d /home/user -m -s /bin/bash user
WORKDIR /code/
ADD requirements.txt /code/
RUN pip install -r requirements.txt
ADD requirements-dev.txt /code/
RUN pip install -r requirements-dev.txt
ADD . /code/
RUN python setup.py install
RUN chown -R user /code/
ENTRYPOINT ["/usr/local/bin/fig"]