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 53
53
/var/www/html/ --strip-components=1 && \
54
54
echo "**** install composer dependencies ****" && \
55
55
composer install -d /var/www/html/ && \
56
+ echo "**** overlay-fs bug workaround ****" && \
57
+ mv /var/www /var/www-tmp && \
56
58
echo "**** cleanup ****" && \
57
59
rm -rf \
58
60
/root/.composer \
61
63
COPY root/ /
62
64
63
65
VOLUME /config
64
- EXPOSE 80
66
+ EXPOSE 80
Original file line number Diff line number Diff line change 53
53
/var/www/html/ --strip-components=1 && \
54
54
echo "**** install composer dependencies ****" && \
55
55
composer install -d /var/www/html/ && \
56
+ echo "**** overlay-fs bug workaround ****" && \
57
+ mv /var/www /var/www-tmp && \
56
58
echo "**** cleanup ****" && \
57
59
rm -rf \
58
60
/root/.composer \
61
63
COPY root/ /
62
64
63
65
VOLUME /config
64
- EXPOSE 80
66
+ EXPOSE 80
Original file line number Diff line number Diff line change 53
53
/var/www/html/ --strip-components=1 && \
54
54
echo "**** install composer dependencies ****" && \
55
55
composer install -d /var/www/html/ && \
56
+ echo "**** overlay-fs bug workaround ****" && \
57
+ mv /var/www /var/www-tmp && \
56
58
echo "**** cleanup ****" && \
57
59
rm -rf \
58
60
/root/.composer \
61
63
COPY root/ /
62
64
63
65
VOLUME /config
64
- EXPOSE 80
66
+ EXPOSE 80
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
2
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
+
3
9
# create directory structure
4
10
mkdir -p \
5
11
/config/www/{uploads,files,images}
108
114
chown -R abc:abc \
109
115
/config
110
116
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
-
114
117
# set lockfile to avoid DB waits for this specific container
115
118
touch /dbwait.lock
You can’t perform that action at this time.
0 commit comments