Update the dockerfile.python 1 by disabling Python bytecode generation with PYTHONDONTWRITEBYTECODE=1 to make runtime faster

This commit is contained in:
harshit 2026-03-02 20:53:15 +05:30
parent 4e925dba50
commit 8a46fff6b0

View file

@ -26,4 +26,9 @@ EXPOSE 8080
ENV PYTHONUNBUFFERED=1
#Prevent Python from writing .pyc files and __pycache__ folders to disk
#Make the runtime faster
ENV PYTHONDONTWRITEBYTECODE=1
CMD ["python", "-m", "v1.src.sensing.ws_server"]