Skip to content
This repository has been archived by the owner on May 24, 2019. It is now read-only.

Commit

Permalink
Merge pull request #183 from mozilla-services/dockerfile_fixes
Browse files Browse the repository at this point in the history
make Dockerfile work more as we expect it to in other cloudops projects
  • Loading branch information
jaredlockhart committed Nov 19, 2015
2 parents aaa0239 + 7cd0a02 commit 4e2103e
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
FROM python:2.7

ENV PYTHONUNBUFFERED 1

RUN apt-get update
RUN apt-get install -y binutils libproj-dev gdal-bin

RUN mkdir /leaderboard

WORKDIR /leaderboard

ADD requirements.txt /leaderboard/

RUN pip install -r requirements.txt

ADD . /leaderboard/

CMD gunicorn -b 0.0.0.0:7001 leaderboard.wsgi
EXPOSE 7001
ENTRYPOINT gunicorn -b 0.0.0.0:7001 leaderboard.wsgi
COPY . /leaderboard
RUN apt-get update && apt-get install -y binutils libproj-dev gdal-bin && apt-get -y clean
RUN pip install -r requirements.txt --no-cache-dir --disable-pip-version-check

0 comments on commit 4e2103e

Please sign in to comment.