forked from hubnedav/PrintABrick
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dockerfile
70 lines (52 loc) · 1.87 KB
/
Dockerfile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
FROM php:7.1.33-zts-stretch
# FROM php:7.1.33-fpm-stretch
RUN apt update && apt install -y \
admesh \
apt-transport-https \
git \
gnupg \
libzip-dev \
povray \
python3-setuptools \
vim \
wget \
&& rm -rf /var/lib/apt/lists/*
# RUN COPY docker-php-ext-get /usr/local/bin/
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod +x /usr/local/bin/install-php-extensions && sync
RUN install-php-extensions zip pdo_mysql
# install elasticsearch
RUN wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
RUN echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-7.x.list
RUN apt update && apt install elasticsearch
RUN /bin/systemctl enable elasticsearch.service
#install node 8 because newever version go kaboom
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt install -y nodejs
#install ldview
RUN wget https://github.com/tcobbs/ldview/releases/download/v4.3/ldview-osmesa_4.3-stretch_amd64.deb
RUN apt install -y /ldview-osmesa_4.3-stretch_amd64.deb
#install stl2pov
RUN git clone https://github.com/rsmith-nl/stltools.git
WORKDIR stltools
RUN python3 setup.py install
WORKDIR /
#install composer
RUN wget https://getcomposer.org/installer
RUN php installer
RUN mv composer.phar /usr/local/bin/composer
RUN git clone https://github.com/hubnedav/PrintABrick.git
WORKDIR /PrintABrick
RUN composer install
# setup front ned
RUN npm install
RUN npm install bower -g
RUN bower install --allow-root
RUN node_modules/gulp/bin/gulp.js
RUN apt install -y mysql-server
#configure mysql
#start and let root access to server
#RUN php bin/console doctrine:database:create
#RUN php bin/console doctrine:schema:create
#RUN php bin/console doctrine:fixtures:load
#RUN php bin/console app:init