Remove -tmp logic

This commit is contained in:
Eric Nemchik 2023-01-20 18:18:44 -06:00
parent 1603fb13fc
commit 288cb8d25b
4 changed files with 4 additions and 9 deletions

View File

@ -52,7 +52,7 @@ RUN \
echo "**** install composer dependencies ****" && \
composer install -d /app/www/ && \
echo "**** overlay-fs bug workaround ****" && \
mv /app/www /app/www-tmp && \
mv /app/www /app/www && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \

View File

@ -52,7 +52,7 @@ RUN \
echo "**** install composer dependencies ****" && \
composer install -d /app/www/ && \
echo "**** overlay-fs bug workaround ****" && \
mv /app/www /app/www-tmp && \
mv /app/www /app/www && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \

View File

@ -52,7 +52,7 @@ RUN \
echo "**** install composer dependencies ****" && \
composer install -d /app/www/ && \
echo "**** overlay-fs bug workaround ****" && \
mv /app/www /app/www-tmp && \
mv /app/www /app/www && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \

View File

@ -1,12 +1,6 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
if [ -d /app/www-tmp ]; then
echo "New container detected. Setting up app folder and fixing permissions."
mv /app/www-tmp /app/www
lsiown -R abc:abc /app/www
fi
# create directory structure
mkdir -p \
/config/www/{uploads,files,images,themes}
@ -147,6 +141,7 @@ fi
# permissions
lsiown -R abc:abc \
/app/www/storage \
/config
# set lockfile to avoid DB waits for this specific container