diff --git a/Dockerfile b/Dockerfile index b55fac5ce2073ab54cd7b928272d78f8a517558a..e9f91f714fc9484168594c23567265adcec68c4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,12 @@ RUN pip install pipreqs RUN pipreqs . --force #Install all required python libs RUN python3 -m pip install -r requirements.txt +#Compile the Python files (for more speed) and replace the original files +RUN python -m compileall . +RUN rm main.py import.py export.py +RUN mv __pycache__/main.* main.py +RUN mv __pycache__/import.* import.py +RUN mv __pycache__/export.* export.py #Make a builddate file, used if you want to see the builddate in the webui RUN date > builddate.txt