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
.env.testing
.git*
docker/
package.json
package-lock.json
phpunit.xml
webpack.mix.js
yarn.lock

View File

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

View File

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