finish image

This commit is contained in:
Mathieu Jaumotte 2023-02-01 11:38:00 +01:00
parent 1a1188c612
commit b63a4f2a5f

View File

@ -29,56 +29,51 @@ RUN apk update && apk add --no-cache \
&& apk add postgresql${POSTGRES_VERSION}-client \ && apk add postgresql${POSTGRES_VERSION}-client \
&& apk del wget gnupg libpq-dev icu-dev oniguruma-dev libzip-dev linux-headers gcc g++ make autoconf && apk del wget gnupg libpq-dev icu-dev oniguruma-dev libzip-dev linux-headers gcc g++ make autoconf
# "ERROR: Package cache is not enabled." \ RUN { \
# https://github.com/gliderlabs/docker-alpine/issues/224 echo ""; \
#RUN apk cache clean echo "memory_limit = 512M"; \
echo ""; \
} >> /usr/local/etc/php/conf.d/memory_limit.ini
RUN { \
echo ""; \
echo "[Date]"; \
echo "date.timezone = Europe/Brussels"; \
echo ""; \
} >> /usr/local/etc/php/conf.d/date.ini
#RUN { \ COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
# echo ""; \ ENV COMPOSER_ALLOW_SUPERUSER=1
# echo "memory_limit = 512M"; \ ENV COMPOSER_MEMORY_LIMIT=-1
# echo ""; \
# } >> /usr/local/etc/php/conf.d/memory_limit.ini WORKDIR /var/www/app
#
#RUN { \ CMD ["php-fpm"]
# echo ""; \
# echo "[Date]"; \ FROM chill_base_php82 AS chill_php82
# echo "date.timezone = Europe/Brussels"; \
# echo ""; \ # copy directories
# } >> /usr/local/etc/php/conf.d/date.ini
# COPY ./bin /var/www/app/bin/.
#COPY --from=composer:2 /usr/bin/composer /usr/bin/composer COPY ./composer.* /var/www/app/
#ENV COMPOSER_ALLOW_SUPERUSER=1 COPY ./config /var/www/app/config/.
#ENV COMPOSER_MEMORY_LIMIT=-1 COPY ./migrations /var/www/app/migrations/.
# COPY ./public /var/www/app/public/.
#WORKDIR /var/www/app COPY ./src /var/www/app/src/.
# COPY ./templates /var/www/app/templates/.
#CMD ["php-fpm"] COPY ./translations /var/www/app/translations/.
# COPY ./vendor /var/www/app/vendor/.
#FROM chill_base_php82 AS chill_php82
# COPY ./.env /var/www/app/.env
## copy directories
# # import the manifest.json file
#COPY ./bin /var/www/app/bin/. COPY ./public/build/manifest.json /var/www/app/public/build/manifest.json
#COPY ./composer.* /var/www/app/
#COPY ./config /var/www/app/config/. ADD ./entrypoint.sh /.
#COPY ./migrations /var/www/app/migrations/.
#COPY ./public /var/www/app/public/. RUN chmod +x /entrypoint.sh
#COPY ./src /var/www/app/src/.
#COPY ./templates /var/www/app/templates/. ENTRYPOINT ["/entrypoint.sh"]
#COPY ./translations /var/www/app/translations/.
#COPY ./vendor /var/www/app/vendor/.
#
#COPY ./.env /var/www/app/.env
#
## import the manifest.json file
#COPY ./public/build/manifest.json /var/www/app/public/build/manifest.json
#
#ADD ./entrypoint.sh /.
#
#RUN chmod +x /entrypoint.sh
#
#ENTRYPOINT ["/entrypoint.sh"]
ENV PHP_FPM_USER=www-data \ ENV PHP_FPM_USER=www-data \
PHP_FPM_GROUP=www-data \ PHP_FPM_GROUP=www-data \