-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·57 lines (42 loc) · 1.67 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
FROM ubuntu:18.04
MAINTAINER Eduardo Malherbi <emalherbi@gmail.com>
ENV ACCEPT_EULA=Y
ENV TERM=xterm TZ=America/Sao_Paulo TZ=America/Sao_Paulo DEBIAN_FRONTEND=noninteractive
# update package list
RUN apt-get update
# install utils
RUN apt-get install -y curl git apt-utils
# install apache
RUN apt-get install -y apache2
# install php
RUN apt-get install -y php7.2 mcrypt php-mbstring php-pear php7.2-dev php7.2-xml
RUN apt-get install -y libapache2-mod-php7.2
# install soap and curl and gd
RUN apt-get install -y libxml2-dev php-soap php-curl php-gd
# install mysql
RUN apt-get -y install php7.2-mysql --fix-missing
# install pre requisites
RUN apt-get install -y apt-transport-https
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
RUN apt-get update
RUN apt-get install -y msodbcsql17 mssql-tools unixodbc-dev
RUN echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile
RUN echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
RUN exec bash
# install nsq
RUN apt-get update --fix-missing && apt-get install -y libevent-dev
RUN pecl install nsq
RUN echo "extension=nsq.so" >> /etc/php/7.2/apache2/php.ini
# install driver sqlsrv
RUN pecl install sqlsrv
RUN echo "extension=sqlsrv.so" >> /etc/php/7.2/apache2/php.ini
# install locales
RUN apt-get install -y locales && echo "pt_BR.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
# rewrite
RUN a2enmod rewrite
# 000-default.conf to change apache site settings
ADD 000-default.conf /etc/apache2/sites-available/
EXPOSE 80
EXPOSE 443
CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]