Modified to fit k8s

This commit is contained in:
Lee Ween Jiann
2021-03-23 19:47:11 +08:00
parent f175fa4fb0
commit c0350de418
4 changed files with 15 additions and 15 deletions

View File

@@ -44,9 +44,8 @@ LABEL maintainer="David Bomba <turbo124@gmail.com>"
WORKDIR /var/www/app
COPY --from=frontend /var/www/app /var/www/app
COPY entrypoint.sh /usr/local/bin/docker-entrypoint
RUN chmod +x /usr/local/bin/docker-entrypoint \
&& mv /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
RUN mv /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
# Install PHP extensions
# https://hub.docker.com/r/mlocati/php-extension-installer/tags
@@ -72,6 +71,7 @@ RUN set -eux; \
chromium \
ttf-freefont
COPY entrypoint.sh /usr/local/bin/docker-entrypoint
COPY ./config/php/php.ini /usr/local/etc/php/conf.d/in-php.ini
COPY ./config/supervisor/supervisord.conf /
@@ -87,10 +87,10 @@ RUN addgroup --gid=$UID -S "$INVOICENINJA_USER" \
--ingroup "$INVOICENINJA_USER" \
--no-create-home \
"$INVOICENINJA_USER" \
&& addgroup "$INVOICENINJA_USER" www-data \
&& mkdir /var/log/supervisord /var/run/supervisord \
&& chown -R "$INVOICENINJA_USER":"$INVOICENINJA_USER" /var/www/app \
&& chown $INVOICENINJA_USER:www-data /var/log/supervisord /var/run/supervisord
&& chmod +x /usr/local/bin/docker-entrypoint \
&& mkdir /app /var/log/supervisord \
&& chown -R "$INVOICENINJA_USER":"$INVOICENINJA_USER" /app \
&& chown -R "$INVOICENINJA_USER":"$INVOICENINJA_USER" /var/www/app
USER $UID