Skip to content

Commit

Permalink
👷 Avoid creating unnecessary *.pyc files with `PYTHONDONTWRITEBYTEC…
Browse files Browse the repository at this point in the history
…ODE=1` and ensure logs are printed immediately with `PYTHONUNBUFFERED=1` (#109)
  • Loading branch information
estebanx64 authored Mar 21, 2024
1 parent 4a46af2 commit f6bb9a8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-images/python3.7.dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM python:3.7

ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

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

COPY requirements.txt /tmp/requirements.txt
Expand Down
3 changes: 3 additions & 0 deletions docker-images/python3.8.dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM python:3.8

ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

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

COPY requirements.txt /tmp/requirements.txt
Expand Down
3 changes: 3 additions & 0 deletions docker-images/python3.9.dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM python:3.9

ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

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

COPY requirements.txt /tmp/requirements.txt
Expand Down

0 comments on commit f6bb9a8

Please sign in to comment.