# Dockerfile for an image, that can run inkscape and PHP based webapps. # Copyright (C) 2020 Maximilian Stiefel (stiefel.maximilian@online.de) # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation; version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 59 Temple # Place, Suite 330, Boston, MA 02111-1307 USA FROM debian:latest ARG DEBIAN_FRONTEND=noninteractive # Updates RUN apt update && apt upgrade -y # Install LAMP RUN apt install apache2 php php-mysql -y RUN apt install unzip wget -y # Prepare directory for images RUN mkdir -p /var/www/html/images && chmod -R 777 /var/www/html/images # Compile and install inkscape RUN cd /tmp \ && wget https://gitlab.com/inkscape/inkscape/-/archive/INKSCAPE_1_0/inkscape-INKSCAPE_1_0.zip \ && wget https://gitlab.com/inkscape/inkscape-ci-docker/-/raw/master/install_dependencies.sh RUN cd /tmp \ && chmod +x install_dependencies.sh \ && bash install_dependencies.sh --recommended RUN cd /tmp \ && unzip inkscape-INKSCAPE_1_0.zip \ && cd inkscape-INKSCAPE_1_0 \ && mkdir build \ && cd build \ && cmake .. \ && make -j4 \ && make install # Install rpl RUN apt install rpl -y RUN apt remove unzip wget -y # Run apache CMD apachectl -D FOREGROUND