docker-build

issues with Docker on wsl (ubuntu 22.04)

issues with Docker on wsl (ubuntu 22.04) Question: An attempt to build a docker image fails on RUN pip install -r requirements.txt step with the following error: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError("HTTPSConnectionPool(host=’pypi.org’, port=443): Read timed out. (read timeout=15)")’: /simple/asgiref/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection …

Total answers: 2

Should I add Python's pyc files to .dockerignore?

Should I add Python's pyc files to .dockerignore? Question: I’ve seen several examples of .dockerignore files for Python projects where *.pyc files and/or __pycache__ folders are ignored: **/__pycache__ *.pyc Since these files/folders are going to be recreated in the container anyway, I wonder if it’s a good practice to do so. Asked By: planetp || …

Total answers: 1