File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 5353 /var/www/html/ --strip-components=1 && \
5454 echo "**** install composer dependencies ****" && \
5555 composer install -d /var/www/html/ && \
56+ echo "**** overlay-fs bug workaround ****" && \
57+ mv /var/www /var/www-tmp && \
5658 echo "**** cleanup ****" && \
5759 rm -rf \
5860 /root/.composer \
6163COPY root/ /
6264
6365VOLUME /config
64- EXPOSE 80
66+ EXPOSE 80
Original file line number Diff line number Diff line change 5353 /var/www/html/ --strip-components=1 && \
5454 echo "**** install composer dependencies ****" && \
5555 composer install -d /var/www/html/ && \
56+ echo "**** overlay-fs bug workaround ****" && \
57+ mv /var/www /var/www-tmp && \
5658 echo "**** cleanup ****" && \
5759 rm -rf \
5860 /root/.composer \
6163COPY root/ /
6264
6365VOLUME /config
64- EXPOSE 80
66+ EXPOSE 80
Original file line number Diff line number Diff line change 5353 /var/www/html/ --strip-components=1 && \
5454 echo "**** install composer dependencies ****" && \
5555 composer install -d /var/www/html/ && \
56+ echo "**** overlay-fs bug workaround ****" && \
57+ mv /var/www /var/www-tmp && \
5658 echo "**** cleanup ****" && \
5759 rm -rf \
5860 /root/.composer \
6163COPY root/ /
6264
6365VOLUME /config
64- EXPOSE 80
66+ EXPOSE 80
Original file line number Diff line number Diff line change 11#!/usr/bin/with-contenv bash
22
3+ if [ -d /var/www-tmp ]; then
4+ echo "New container detected. Setting up app folder and fixing permissions."
5+ mv /var/www-tmp /var/www
6+ chown -R abc:abc /var/www
7+ fi
8+
39# create directory structure
410mkdir -p \
511 /config/www/{uploads,files,images}
108114chown -R abc:abc \
109115 /config
110116
111- find /var/www -print0 | xargs -P "$(nproc)" -I {} -0 chown -h abc:abc {}
112- find /var/www -print0 -type d | xargs -P "$(nproc)" -I {} -0 chown -h abc:abc {}
113-
114117# set lockfile to avoid DB waits for this specific container
115118touch /dbwait.lock
You can’t perform that action at this time.
0 commit comments