forked from bylexus/docker-apache-php7
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
93 lines (75 loc) · 2.41 KB
/
Copy pathDockerfile
File metadata and controls
93 lines (75 loc) · 2.41 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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
FROM ubuntu:16.04
MAINTAINER Alexander Schenkel <alex@alexi.ch>
VOLUME ["/var/www"]
RUN apt-get clean && apt-get update && apt-get install -y locales
RUN locale-gen en_US.UTF-8 && dpkg-reconfigure locales
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV LC_MONETARY en_US.UTF-8
RUN apt-get clean && apt-get update && apt-get install -y \
mysql-client \
wget \
unzip \
texlive-latex-base \
texlive-latex-extra \
lcdf-typetools \
pdfjam \
pdftk \
imagemagick \
python-pip \
nodejs \
apache2 \
php7.0 \
php-curl \
php7.0-cli \
libapache2-mod-php7.0 \
php-apcu \
php7.0-gd \
php7.0-json \
php7.0-ldap \
php7.0-mbstring \
php7.0-mysql \
php7.0-pgsql \
php7.0-sqlite3 \
php7.0-xml \
php7.0-xsl \
php7.0-zip \
php7.0-soap \
php7.0-opcache \
php7.0-bz2 \
php7.0-xmlreader \
php-imagick \
composer \
build-essential libssl-dev \
&& printf 'en_GB.UTF-8 UTF-8\n' >> /etc/locale.gen \
&& locale-gen en_US.UTF-8
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 10.15.1
# Install nvm with node and npm
RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
# install node and npm
RUN source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
# add node and npm to path so the commands are available
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
# confirm installation
RUN node -v
RUN npm -v
RUN npm install -g bower gulp grunt-cli grunt
# Update ImageMagick Policy
ARG imagemagic_config=/etc/ImageMagick-6/policy.xml
RUN if [[ -f $imagemagic_config ]] ; then sed -i 's/<policy domain="coder" rights="none" pattern="PDF" \/>/<policy domain="coder" rights="read|write" pattern="PDF" \/>/g' $imagemagic_config ; else echo did not see file $imagemagic_config ; fi
#
#RUN php -r "echo setlocale(LC_ALL, 0);"
#RUN php -r "setlocale(LC_MONETARY, 'en_US.UTF-8'); setlocale(LC_ALL, 'en_US.UTF8'); echo money_format('%#10n',10.99);"
#COPY apache_default /etc/apache2/sites-available/000-default.conf
#COPY run /usr/local/bin/run
#RUN chmod +x /usr/local/bin/run
#RUN a2enmod rewrite
EXPOSE 8080
#CMD ["/usr/local/bin/run"]