Skip to content

Instantly share code, notes, and snippets.

@muffinresearch
Created August 8, 2014 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muffinresearch/ce889f7e5e9770571a4b to your computer and use it in GitHub Desktop.
Save muffinresearch/ce889f7e5e9770571a4b to your computer and use it in GitHub Desktop.
Webpay Dockerfile example
FROM mozillamarketplace/centos-python27-mkt:0.5
RUN mkdir -p /pip/{cache,build}
ADD requirements /pip/requirements
# Setting cwd to /pip ensures egg-links for git installed deps are created in /pip/src
WORKDIR /pip
RUN pip install -b /pip/build --download-cache /pip/cache --no-deps -r /pip/requirements/docker.txt
EXPOSE 2601
ADD . /srv/webpay
WORKDIR /srv/webpay
CMD python manage.py runserver 0.0.0.0:2601
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment