FROM php:apache-bookworm AS php-ffmpeg
RUN apt-get update && apt-get -y install ffmpeg
FROM php-ffmpeg
WORKDIR /var/www
COPY src/ html/
RUN mkdir uploads && chown -R www-data:www-data uploads
EXPOSE 80/tcp