Files
dokku/tests/apps/dockerfile-release/Dockerfile
Jose Diaz-Gonzalez 84367e1c16 fix: correctly handle injecting environment variables to deployment tasks
Also test that release tasks are invoked the correct environment.

Closes #3817
2020-08-31 15:01:14 -04:00

20 lines
304 B
Docker

FROM python:3.8-buster
RUN pip install --user pipenv
ENV PATH="${PATH}:/root/.local/bin"
ENV PIPENV_VENV_IN_PROJECT=0
COPY . /app
WORKDIR /app
RUN ls -lah
RUN rm -rf .venv
RUN mkdir .venv
RUN pipenv install
CMD pipenv run gunicorn -b 0.0.0.0:8000 --workers=3 --threads=5 project.wsgi:application