add full 3mf

master
Dirk Heilig 2024-04-16 00:27:04 +02:00
parent b9b53dca34
commit bb06c6ba5c
1 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,6 @@
FROM debian:12
RUN apt-get update && apt-get upgrade -y && apt-get clean
RUN apt-get install -y supervisor apache2 php libapache2-mod-php php-mbstring php-zip curl git openscad zip
RUN apt-get install -y supervisor apache2 php libapache2-mod-php php-mbstring php-zip curl git openscad zip cmake build-essential
RUN apt-get clean
RUN chown -R www-data:www-data /var/www
RUN curl https://files.openscad.org/snapshots/OpenSCAD-2024.03.28.ai18952-x86_64.AppImage > /tmp/openscad
@ -8,6 +8,14 @@ RUN chmod +x /tmp/openscad
WORKDIR /opt
RUN /tmp/openscad --appimage-extract
RUN ln -s /opt/squashfs-root/usr/bin/openscad /usr/local/bin/openscad
RUN git clone https://github.com/jschobben/colorscad
WORKDIR /opt/colorscad/3mfmerge/build
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/
USER 33:33
WORKDIR /var/www
RUN mkdir -p /var/www/html