dockerfile for drone build
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
2022-01-10 11:51:12 +01:00
parent 2920289a0e
commit 90d20908e5
2 changed files with 28 additions and 3 deletions

25
docker/Dockerfile.drone Normal file
View File

@ -0,0 +1,25 @@
FROM php:8.1-fpm-buster
RUN apt update && apt install -y curl git
# https://github.com/mlocati/docker-php-extension-installer
# https://github.com/mlocati/docker-php-extension-installer#special-requirements
RUN curl -sSLf -o /usr/local/bin/install-php-extensions \
https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions && \
chmod +x /usr/local/bin/install-php-extensions
RUN install-php-extensions opcache redis timezonedb
RUN apt clean autoclean && \
apt autoremove -y && \
rm -rf /var/lib/apt/lists/*
RUN usermod -u 1000 www-data && groupmod -g 1000 www-data
RUN chown -R www-data:www-data /var/www
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
COPY zz-custom-php.ini "$PHP_INI_DIR/conf.d/"
COPY zz-custom-phpfpm.conf /usr/local/etc/php-fpm.d/zz-docker.conf
COPY /drone/src/frontend/build /var/www/frontend
COPY /drone/src/backend /var/www/backend