Skip to content

Commit 6356dc5

Browse files
committed
fixes #73 - add precompile step
1 parent bb51e3d commit 6356dc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN <<EOT
1515
python -m venv /app
1616
/app/bin/pip install -U "pip==${PIP_VERSION}"
1717
/app/bin/pip install Plone plone.volto ${EXTRA_PACKAGES} -c https://dist.plone.org/release/$PLONE_VERSION/constraints.txt ${PIP_PARAMS}
18-
find /app \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -exec rm -rf '{}' +
18+
find . -name *.py -and -not -path */*skins/* -and -not -name *_2.py -and -not -name badsyntax.py -exec ./bin/python -m compileall {} +
1919
EOT
2020

2121
COPY --chown=500:500 /skeleton/etc /app/etc

0 commit comments

Comments
 (0)