From 81e5027544af6dd7cfb034bc054baaf3de846cef Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Fri, 15 Jul 2022 12:16:54 +0200 Subject: [PATCH] Add settings from VSCode Docker extension --- .dockerignore | 28 ++++++++++++++++++++++++++++ Dockerfile | 6 ++++-- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index 1269488f..07d50b4b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1 +1,29 @@ +**/__pycache__ +**/.venv +**/.classpath +**/.dockerignore +**/.env +**/.git +**/.gitignore +**/.project +**/.settings +**/.toolstarget +**/.vs +**/.vscode +**/*.*proj.user +**/*.dbmdl +**/*.jfm +**/bin +**/charts +**/docker-compose* +**/compose* +**/Dockerfile* +**/node_modules +**/npm-debug.log +**/obj +**/secrets.dev.yaml +**/values.dev.yaml +README.md + + data diff --git a/Dockerfile b/Dockerfile index 6ec450b5..0a2309f5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.8.13-slim-buster +FROM python:3.8.10-slim-buster LABEL authors="Patrick Jentsch " @@ -7,10 +7,12 @@ LABEL authors="Patrick Jentsch " ARG DOCKER_GID ARG UID ARG GID -ENV LANG=C.UTF-8 ENV FLASK_APP nopaque.py +ENV LANG=C.UTF-8 +ENV PYTHONDONTWRITEBYTECODE=1 +ENV PYTHONUNBUFFERED=1 RUN apt-get update \