Trying bytecode compilation of .py files as Docker build step.

This commit is contained in:
Geoff Taylor 2022-03-01 09:05:14 +00:00
parent 2e12296c0e
commit cf5103a23a
2 changed files with 2 additions and 0 deletions

View File

@ -6,3 +6,4 @@
wallet.json
id.json
private.py
__pycache__

View File

@ -16,5 +16,6 @@ RUN poetry install --no-dev --no-root
# Have these as the last steps since the code here is the most-frequently changing
COPY . /app/
RUN python3 -m compileall /app
ARG LAST_COMMIT=""
RUN echo ${LAST_COMMIT} > /app/data/.version