mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
ci(docker): optimise building of main image
Dependency libraries are loaded before copying the rest of the project files so dependencies may be cached during builds
This commit is contained in:
parent
97c577732b
commit
6013cd095e
1 changed files with 5 additions and 1 deletions
|
@ -23,7 +23,7 @@ RUN mkdir openvk
|
||||||
|
|
||||||
WORKDIR /opt/chandler/extensions/available/openvk
|
WORKDIR /opt/chandler/extensions/available/openvk
|
||||||
|
|
||||||
ADD . .
|
ADD composer.* .
|
||||||
|
|
||||||
RUN composer install
|
RUN composer install
|
||||||
|
|
||||||
|
@ -33,10 +33,14 @@ COPY --from=builder /opt/chandler /opt/chandler
|
||||||
|
|
||||||
WORKDIR /opt/chandler/extensions/available/openvk/Web/static/js
|
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
|
RUN yarn install
|
||||||
|
|
||||||
WORKDIR /opt/chandler/extensions/available/openvk
|
WORKDIR /opt/chandler/extensions/available/openvk
|
||||||
|
|
||||||
|
ADD . .
|
||||||
|
|
||||||
ARG GITREPO=openvk/openvk
|
ARG GITREPO=openvk/openvk
|
||||||
FROM ghcr.io/${GITREPO}/php:8.2-apache
|
FROM ghcr.io/${GITREPO}/php:8.2-apache
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue