-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile fix cuz of pypa/pipenv#4220
- Loading branch information
1 parent
9baf07e
commit 628b991
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,15 @@ LABEL maintainer="[email protected]" \ | |
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 | ||
|
@@ -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"'] |