BUGFIX: daemon container could not build

This commit is contained in:
Jeroen De Meerleer 2022-10-04 17:43:27 +02:00
parent d972cc24de
commit 24350a515b
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -22,13 +22,13 @@ COPY wait-for-it.sh /usr/local/bin/wait-for-it.sh
COPY entrypoint.daemon.sh /usr/local/bin/entrypoint.sh COPY entrypoint.daemon.sh /usr/local/bin/entrypoint.sh
RUN set -eux; \ RUN set -eux; \
mv ${WEBCRON_ROOT}.env.sample ${WEBCRON_ROOT}.env && \
chown -R www-data:www-data ${WEBCRON_ROOT} && \ chown -R www-data:www-data ${WEBCRON_ROOT} && \
chmod uga+x /usr/local/bin/wait-for-it.sh && \ chmod uga+x /usr/local/bin/wait-for-it.sh && \
chmod uga+x /usr/local/bin/entrypoint.sh && sync chmod uga+x /usr/local/bin/entrypoint.sh && sync
USER www-data USER www-data
WORKDIR ${WEBCRON_ROOT} WORKDIR ${WEBCRON_ROOT}
RUN mv .env.sample .env
RUN composer install RUN composer install
RUN bash -c "if [ -n \"${VERSION}\" ] ; then echo ${VERSION} > ${WEBCRON_ROOT}/version ; fi" RUN bash -c "if [ -n \"${VERSION}\" ] ; then echo ${VERSION} > ${WEBCRON_ROOT}/version ; fi"