chore: Ignore .env files and ensure unbuffered Python output in the Docker container.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -8,3 +8,4 @@ wheels/
|
|||||||
|
|
||||||
# Virtual environments
|
# Virtual environments
|
||||||
.venv
|
.venv
|
||||||
|
.env
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
FROM python:3.13-slim
|
FROM python:3.13-slim
|
||||||
|
|
||||||
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
@@ -7,4 +9,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
|
|
||||||
COPY sync_calendar.py .
|
COPY sync_calendar.py .
|
||||||
|
|
||||||
CMD ["python", "sync_calendar.py"]
|
CMD ["python", "-u", "sync_calendar.py"]
|
||||||
|
|||||||
Reference in New Issue
Block a user