Ensure docker build updates public/ and remove other unnessary files from image

This commit is contained in:
Deon George 2023-04-13 10:05:10 +10:00
parent 9e90820bfd
commit a4c05002a1
3 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,9 @@
.editorconfig .editorconfig
.env.testing .env.testing
.git* .git*
docker/
package.json package.json
package-lock.json
phpunit.xml phpunit.xml
webpack.mix.js webpack.mix.js
yarn.lock yarn.lock

View File

@ -7,7 +7,7 @@ stages:
cache: cache:
key: ${CI_COMMIT_REF_SLUG} key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- public/ - public/*/vendor/
- node_modules/ - node_modules/
- vendor/ - vendor/

View File

@ -7,4 +7,4 @@ RUN mkdir -p ${COMPOSER_HOME} && \
touch .composer.refresh && \ touch .composer.refresh && \
mv .env.example .env && \ mv .env.example .env && \
FORCE_PERMS=1 NGINX_START=FALSE /sbin/init && \ FORCE_PERMS=1 NGINX_START=FALSE /sbin/init && \
rm -rf ${COMPOSER_HOME}/* composer.lock package-lock.json rm -rf ${COMPOSER_HOME}/* composer.lock