Skip to content

Commit

Permalink
♻️ Do not EXPOSE ports 80 and 443 by default as they can be cus…
Browse files Browse the repository at this point in the history
…tomized (#238)
  • Loading branch information
tiangolo authored Sep 8, 2024
1 parent 268f276 commit 0c1bebb
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 18 deletions.
2 changes: 0 additions & 2 deletions docker-images/python3.10-slim.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ WORKDIR /app/

ENV PYTHONPATH=/app

EXPOSE 80

# Run the start script, it will check for an /app/prestart.sh script (e.g. for migrations)
# And then will start Gunicorn with Uvicorn
CMD ["/start.sh"]
2 changes: 0 additions & 2 deletions docker-images/python3.10.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ WORKDIR /app/

ENV PYTHONPATH=/app

EXPOSE 80

# Run the start script, it will check for an /app/prestart.sh script (e.g. for migrations)
# And then will start Gunicorn with Uvicorn
CMD ["/start.sh"]
2 changes: 0 additions & 2 deletions docker-images/python3.11-slim.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ WORKDIR /app/

ENV PYTHONPATH=/app

EXPOSE 80

# Run the start script, it will check for an /app/prestart.sh script (e.g. for migrations)
# And then will start Gunicorn with Uvicorn
CMD ["/start.sh"]
2 changes: 0 additions & 2 deletions docker-images/python3.11.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ WORKDIR /app/

ENV PYTHONPATH=/app

EXPOSE 80

# Run the start script, it will check for an /app/prestart.sh script (e.g. for migrations)
# And then will start Gunicorn with Uvicorn
CMD ["/start.sh"]
2 changes: 0 additions & 2 deletions docker-images/python3.7.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ WORKDIR /app/

ENV PYTHONPATH=/app

EXPOSE 80

# Run the start script, it will check for an /app/prestart.sh script (e.g. for migrations)
# And then will start Gunicorn with Uvicorn
CMD ["/start.sh"]
2 changes: 0 additions & 2 deletions docker-images/python3.8-slim.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ WORKDIR /app/

ENV PYTHONPATH=/app

EXPOSE 80

# Run the start script, it will check for an /app/prestart.sh script (e.g. for migrations)
# And then will start Gunicorn with Uvicorn
CMD ["/start.sh"]
2 changes: 0 additions & 2 deletions docker-images/python3.8.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ WORKDIR /app/

ENV PYTHONPATH=/app

EXPOSE 80

# Run the start script, it will check for an /app/prestart.sh script (e.g. for migrations)
# And then will start Gunicorn with Uvicorn
CMD ["/start.sh"]
2 changes: 0 additions & 2 deletions docker-images/python3.9-slim.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ WORKDIR /app/

ENV PYTHONPATH=/app

EXPOSE 80

# Run the start script, it will check for an /app/prestart.sh script (e.g. for migrations)
# And then will start Gunicorn with Uvicorn
CMD ["/start.sh"]
2 changes: 0 additions & 2 deletions docker-images/python3.9.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ WORKDIR /app/

ENV PYTHONPATH=/app

EXPOSE 80

# Run the start script, it will check for an /app/prestart.sh script (e.g. for migrations)
# And then will start Gunicorn with Uvicorn
CMD ["/start.sh"]

0 comments on commit 0c1bebb

Please sign in to comment.