1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2026-03-14 13:55:44 +01:00

ci: dockerize and push with gh-actions

This commit is contained in:
xgaia 2022-01-28 17:23:51 +01:00
commit 1f0022b6e1
4 changed files with 97 additions and 0 deletions

18
Dockerfile Normal file
View file

@ -0,0 +1,18 @@
FROM php:7.4-apache
ENV SERVERNAME=localhost
RUN apt update && apt install -y gettext-base librsvg2-bin pdftk imagemagick potrace
COPY . /usr/local/signaturepdf
RUN chown -R www-data:www-data /usr/local/signaturepdf && chmod 750 -R /usr/local/signaturepdf && \
cp /usr/local/signaturepdf/php.ini /usr/local/etc/php/conf.d/uploads.ini && \
cat /usr/local/signaturepdf/apache.conf | envsubst > /etc/apache2/sites-available/signaturepdf.conf && \
a2enmod rewrite && a2ensite signaturepdf
WORKDIR /usr/local/signaturepdf
CMD envsubst < /usr/local/signaturepdf/apache.conf > /etc/apache2/sites-available/signaturepdf.conf && \
chown -R www-data:www-data /usr/local/signaturepdf && chmod 750 -R /usr/local/signaturepdf && \
apache2-foreground