Verified Commit 03776c46 authored by Kevin Morris's avatar Kevin Morris
Browse files

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



Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
parent a2d08e44
Pipeline #28775 passed with stages
in 2 minutes and 7 seconds
......@@ -2,6 +2,7 @@ FROM archlinux:base-devel
VOLUME /root/.cache/pypoetry/cache
VOLUME /root/.cache/pypoetry/artifacts
VOLUME /root/.cache/pre-commit
ENV PATH="/root/.poetry/bin:${PATH}"
ENV PYTHONPATH=/aurweb
......@@ -41,3 +42,6 @@ RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime
# Install translations.
RUN make -C po all install
# Install pre-commit repositories and run lint check.
RUN pre-commit run -a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment