fix(docker): cache & install pre-commit deps during image build

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2022-09-11 18:00:11 -07:00
parent a2d08e441e
commit 03776c4663
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -2,6 +2,7 @@ FROM archlinux:base-devel
VOLUME /root/.cache/pypoetry/cache VOLUME /root/.cache/pypoetry/cache
VOLUME /root/.cache/pypoetry/artifacts VOLUME /root/.cache/pypoetry/artifacts
VOLUME /root/.cache/pre-commit
ENV PATH="/root/.poetry/bin:${PATH}" ENV PATH="/root/.poetry/bin:${PATH}"
ENV PYTHONPATH=/aurweb ENV PYTHONPATH=/aurweb
@ -41,3 +42,6 @@ RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime
# Install translations. # Install translations.
RUN make -C po all install RUN make -C po all install
# Install pre-commit repositories and run lint check.
RUN pre-commit run -a