Skip to content

Commit

Permalink
Dockerfile fix cuz of pypa/pipenv#4220
Browse files Browse the repository at this point in the history
  • Loading branch information
cybersturmer committed May 30, 2020
1 parent 9baf07e commit 628b991
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/Dockerfile
Expand Up @@ -7,15 +7,15 @@ LABEL maintainer="cybersturmer@ya.ru" \
ENV PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE 1

RUN set -ex && mkdir -p /srv/www/pmdragon
WORKDIR /srv/www/pmdragon

RUN echo "Installing Python dependencies manager..."
RUN pip install --upgrade pip && \\
pip install pipenv
pip install 'pipenv==2018.11.26'

RUN echo "Copying dependencies files..."
COPY Pipfile ./
COPY Pipfile.lock ./
COPY Pipfile* ./

RUN echo "Installing dependencies..."
RUN set -ex && pipenv install --deploy --system
Expand All @@ -24,4 +24,4 @@ RUN echo "Copying application files..."
COPY . .

EXPOSE 8000
CMD ["uvicorn --host 0.0.0.0 --port 8000 conf.asgi.application"]
CMD ['sh -c "uvicorn --host 0.0.0.0 --port 8000 conf.asgi.application"']

0 comments on commit 628b991

Please sign in to comment.