Skip to content

Commit

Permalink
ci(docker): optimise building of main image
Browse files Browse the repository at this point in the history
Dependency libraries are loaded before copying the rest of the project files so dependencies may be cached during builds
  • Loading branch information
WerySkok committed Jul 10, 2024
1 parent 97c5777 commit 6013cd0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion install/automated/docker/openvk.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN mkdir openvk

WORKDIR /opt/chandler/extensions/available/openvk

ADD . .
ADD composer.* .

RUN composer install

Expand All @@ -33,10 +33,14 @@ COPY --from=builder /opt/chandler /opt/chandler

WORKDIR /opt/chandler/extensions/available/openvk/Web/static/js

ADD Web/static/js/package.json Web/static/js/package-lock.json Web/static/js/yarn.lock ./

RUN yarn install

WORKDIR /opt/chandler/extensions/available/openvk

ADD . .

ARG GITREPO=openvk/openvk
FROM ghcr.io/${GITREPO}/php:8.2-apache

Expand Down

0 comments on commit 6013cd0

Please sign in to comment.