2024-08-19 12:12:56 +02:00
|
|
|
ARG BUILD_FROM
|
|
|
|
FROM $BUILD_FROM
|
|
|
|
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
|
|
|
|
# Install DoliDeb
|
2024-08-19 15:09:47 +02:00
|
|
|
RUN apk add --no-cache apache2 php php-mysqli php-curl php-json php-session php-xml php-mbstring php-gd php-intl php-zip curl bash \
|
|
|
|
&& curl -L -o dolibarr.tar.gz https://sourceforge.net/projects/dolibarr/files/latest/download && \
|
|
|
|
if [ -f "dolibarr.tar.gz" ]; then \
|
|
|
|
tar xzf dolibarr.tar.gz -C /var/www/localhost/htdocs/; \
|
|
|
|
rm dolibarr.tar.gz; \
|
|
|
|
else \
|
|
|
|
echo "Download failed or file does not exist."; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
|
2024-08-19 12:12:56 +02:00
|
|
|
|
|
|
|
# Copy the run script
|
|
|
|
COPY run.sh /run.sh
|
|
|
|
RUN chmod a+x /run.sh
|
|
|
|
|
|
|
|
CMD [ "/run.sh" ]
|