-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 926 Bytes
/
Dockerfile
File metadata and controls
31 lines (23 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM php:8.4-apache
# Install dependencies
RUN apt-get update && \
apt-get install -y libkrb5-dev libfreetype6-dev libgmp-dev libicu-dev libjpeg62-turbo-dev libpng-dev libpq-dev libxml2-dev libzip-dev unzip && \
apt-get clean && \
a2enmod rewrite
# Install GD
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/
RUN docker-php-ext-install gd
# Install other extensions one by one
RUN docker-php-ext-install bcmath
RUN docker-php-ext-install intl gmp mysqli pdo pdo_mysql pgsql zip
RUN docker-php-ext-install soap
ENV FS_VERSION=2025.71
# Download FacturaScripts
ADD https://facturascripts.com/DownloadBuild/1/${FS_VERSION} /tmp/facturascripts.zip
# Unzip
RUN unzip -q /tmp/facturascripts.zip -d /usr/src/; \
rm -rf /tmp/facturascripts.zip
VOLUME /var/www/html
COPY facturascripts.sh /usr/local/bin/facturascripts
RUN chmod +x /usr/local/bin/facturascripts
CMD ["facturascripts"]