AuberBoxTagWebGenerator/Dockerfile

32 lines
1.1 KiB
Docker
Raw Permalink Normal View History

2024-04-04 16:15:42 +02:00
FROM debian:12
2024-07-12 12:10:26 +02:00
RUN true
2024-04-04 16:15:42 +02:00
RUN apt-get update && apt-get upgrade -y && apt-get clean
2024-07-12 12:10:26 +02:00
RUN apt-get install -y supervisor apache2 php libapache2-mod-php php-mbstring php-zip curl git openscad zip cmake build-essential php-opcache wget
2024-04-04 16:15:42 +02:00
RUN apt-get clean
RUN chown -R www-data:www-data /var/www
2024-07-12 12:10:26 +02:00
ADD htmlq /usr/local/bin/
ADD openscad_installer /tmp/
RUN /tmp/openscad_installer
2024-04-04 16:15:42 +02:00
WORKDIR /opt
2024-04-16 00:27:04 +02:00
RUN git clone https://github.com/jschobben/colorscad
WORKDIR /opt/colorscad/3mfmerge/build
2024-07-12 12:10:26 +02:00
RUN pwd; ls;ls ..
2024-04-16 00:27:04 +02:00
RUN cmake .. -DLIB3MF_TESTS=OFF
RUN cmake --build .
WORKDIR /opt/colorscad/test
RUN ./run.sh
RUN ln -s /opt/colorscad/colorscad.sh /usr/local/bin/
RUN ln -s /opt/colorscad/3mfmerge /usr/local/bin/
2024-04-04 16:15:42 +02:00
USER 33:33
WORKDIR /var/www
RUN mkdir -p /var/www/html
RUN rm -rf /var/www/html/*
RUN ln -s /var/www/src/index.php /var/www/html/index.php
2024-04-04 17:05:17 +02:00
ADD logo.png /var/www/html/logo.png
2024-04-04 16:15:42 +02:00
RUN mkdir queue
RUN git clone https://git.c3re.de/dirk/AuerNameTag.git
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD src /var/www/src
USER root
CMD ["/usr/bin/supervisord", "-c" , "/etc/supervisor/conf.d/supervisord.conf"]