proxitok/Dockerfile
2023-07-26 21:51:32 +02:00

23 lines
512 B
Docker

FROM trafex/php-nginx:3.1.0
# Add composer
COPY --from=composer /usr/bin/composer /usr/bin/composer
# Copy config
COPY ./misc/setup/docker/php.ini /etc/php81/conf.d/settings.ini
USER root
# Create cache folder
RUN mkdir /cache && chown -R nobody:nogroup /cache
# Install deps
RUN apk add --no-cache php81-redis php81-zip php81-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