proxitok/Dockerfile
2023-09-27 13:24:27 +02:00

23 lines
512 B
Docker

FROM trafex/php-nginx:3.4.0
# Add composer
COPY --from=composer /usr/bin/composer /usr/bin/composer
# Copy config
COPY ./misc/setup/docker/php.ini /etc/php82/conf.d/settings.ini
USER root
# Create cache folder
RUN mkdir /cache && chown -R nobody:nogroup /cache
# Install deps
RUN apk add --no-cache php82-redis php82-zip php82-tokenizer
USER nobody
# Copy source
COPY --chown=nobody . /var/www/html
# Dependencies
RUN composer install --no-interaction --optimize-autoloader --no-dev --no-cache
EXPOSE 8080