-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (34 loc) · 1.17 KB
/
Dockerfile
File metadata and controls
34 lines (34 loc) · 1.17 KB
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
32
33
34
FROM debian:13
RUN true
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 cmake build-essential php-opcache wget locales-all libgpg-error0
RUN apt-get clean
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US
ENV LC_ALL=en_US.UTF-8
RUN chown -R www-data:www-data /var/www
ADD htmlq /usr/local/bin/
ADD openscad_installer /tmp/
RUN /tmp/openscad_installer
WORKDIR /opt
RUN git clone https://github.com/jschobben/colorscad
WORKDIR /opt/colorscad/3mfmerge/build
RUN pwd; ls;ls ..
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
RUN rm -rf /var/www/html/*
RUN ln -s /var/www/src/index.php /var/www/html/index.php
ADD logo.png /var/www/html/logo.png
RUN mkdir queue
RUN git clone https://github.com/c3re/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"]