Skip to content

Commit

Permalink
⬆️ Install uvicorn[standard] to include uvloop and Gunicorn support (#54
Browse files Browse the repository at this point in the history
)
  • Loading branch information
tiangolo authored Dec 19, 2020
1 parent 622470e commit 9df1da4
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docker-images/python3.6-alpine3.8.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3.6-alpine3.8
LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN apk add --no-cache --virtual .build-deps gcc libc-dev make \
&& pip install --no-cache-dir uvicorn gunicorn \
&& pip install --no-cache-dir "uvicorn[standard]" gunicorn \
&& apk del .build-deps gcc libc-dev make

COPY ./start.sh /start.sh
Expand Down
2 changes: 1 addition & 1 deletion docker-images/python3.6.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM python:3.6

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install --no-cache-dir uvicorn gunicorn
RUN pip install --no-cache-dir "uvicorn[standard]" gunicorn

COPY ./start.sh /start.sh
RUN chmod +x /start.sh
Expand Down
2 changes: 1 addition & 1 deletion docker-images/python3.7-alpine3.8.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3.7-alpine3.8
LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN apk add --no-cache --virtual .build-deps gcc libc-dev make \
&& pip install --no-cache-dir uvicorn gunicorn \
&& pip install --no-cache-dir "uvicorn[standard]" gunicorn \
&& apk del .build-deps gcc libc-dev make

COPY ./start.sh /start.sh
Expand Down
2 changes: 1 addition & 1 deletion docker-images/python3.7.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM python:3.7

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install --no-cache-dir uvicorn gunicorn
RUN pip install --no-cache-dir "uvicorn[standard]" gunicorn

COPY ./start.sh /start.sh
RUN chmod +x /start.sh
Expand Down
2 changes: 1 addition & 1 deletion docker-images/python3.8-alpine3.10.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3.8-alpine3.10
LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN apk add --no-cache --virtual .build-deps gcc libc-dev make \
&& pip install --no-cache-dir uvicorn gunicorn \
&& pip install --no-cache-dir "uvicorn[standard]" gunicorn \
&& apk del .build-deps gcc libc-dev make

COPY ./start.sh /start.sh
Expand Down
2 changes: 1 addition & 1 deletion docker-images/python3.8-slim.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM python:3.8-slim

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install --no-cache-dir uvicorn gunicorn
RUN pip install --no-cache-dir "uvicorn[standard]" gunicorn

COPY ./start.sh /start.sh
RUN chmod +x /start.sh
Expand Down
2 changes: 1 addition & 1 deletion docker-images/python3.8.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM python:3.8

LABEL maintainer="Sebastian Ramirez <[email protected]>"

RUN pip install --no-cache-dir uvicorn gunicorn
RUN pip install --no-cache-dir "uvicorn[standard]" gunicorn

COPY ./start.sh /start.sh
RUN chmod +x /start.sh
Expand Down

0 comments on commit 9df1da4

Please sign in to comment.