Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
matthazinski committed Sep 17, 2017
1 parent af1d08d commit f822be4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM python:3

RUN pip install --no-cache-dir uWSGI==2.0.15

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY requirements.txt /usr/src/app/
RUN pip install --no-cache-dir -r requirements.txt

COPY . /usr/src/app/

USER nobody
EXPOSE 5000
ENV PYTHONPATH /usr/src/app
ENV FLASK_APP smuggler

CMD ["uwsgi", "--master", "--http", ":5000", "--processes", "4", "--harakiri", "90", "--module", "smuggler", "--callable", "app"]

0 comments on commit f822be4

Please sign in to comment.