mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(docker): cache & install pre-commit deps during image build
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
a2d08e441e
commit
03776c4663
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue