diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b75aaf1 --- /dev/null +++ b/Dockerfile @@ -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"]