2023-09-27 07:24:27 -04:00
|
|
|
FROM trafex/php-nginx:3.4.0
|
2023-07-26 15:41:37 -04:00
|
|
|
|
|
|
|
# Add composer
|
2022-03-15 17:52:54 -04:00
|
|
|
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
|
|
|
|
2023-07-26 15:41:37 -04:00
|
|
|
# Copy config
|
2023-09-27 07:24:27 -04:00
|
|
|
COPY ./misc/setup/docker/php.ini /etc/php82/conf.d/settings.ini
|
2023-07-26 15:41:37 -04:00
|
|
|
|
|
|
|
USER root
|
|
|
|
# Create cache folder
|
|
|
|
RUN mkdir /cache && chown -R nobody:nogroup /cache
|
|
|
|
# Install deps
|
2023-09-27 07:24:27 -04:00
|
|
|
RUN apk add --no-cache php82-redis php82-zip php82-tokenizer
|
2023-07-26 15:41:37 -04:00
|
|
|
USER nobody
|
|
|
|
|
|
|
|
# Copy source
|
|
|
|
COPY --chown=nobody . /var/www/html
|
2022-03-15 19:26:45 -04:00
|
|
|
|
2023-07-26 15:41:37 -04:00
|
|
|
# Dependencies
|
|
|
|
RUN composer install --no-interaction --optimize-autoloader --no-dev --no-cache
|
2022-03-15 19:26:45 -04:00
|
|
|
|
2023-07-26 15:41:37 -04:00
|
|
|
EXPOSE 8080
|