proxitok/Dockerfile

23 lines
512 B
Docker
Raw Permalink Normal View History

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
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
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
2023-07-26 15:41:37 -04:00
# Dependencies
RUN composer install --no-interaction --optimize-autoloader --no-dev --no-cache
2023-07-26 15:41:37 -04:00
EXPOSE 8080