-
Notifications
You must be signed in to change notification settings - Fork 44
/
Dockerfile
70 lines (62 loc) · 1.83 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.2.3
# Install PHP extensions deps
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
libpq-dev \
libzip-dev \
libpng-dev \
openssh-server \
libxrender1 \
libfontconfig1 \
libxext6 \
libfreetype6-dev \
libjpeg62-turbo-dev \
zlib1g-dev \
libicu-dev \
g++ \
unixodbc-dev \
libxml2-dev \
libaio-dev \
libmemcached-dev \
freetds-dev \
libssl-dev \
openssl \
nano \
wget \
curl
RUN apt-get install -y curl gnupg2 apt-transport-https && \
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list && \
apt-get -y update && \
export ACCEPT_EULA=Y && apt-get -y install msodbcsql17 mssql-tools
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-configure pdo_dblib --with-libdir=/lib/x86_64-linux-gnu \
&& pecl install sqlsrv \
&& pecl install pdo_sqlsrv \
&& docker-php-ext-install \
iconv \
mbstring \
bcmath \
intl \
gd \
mysqli \
pdo_mysql \
pdo_pgsql \
pdo_dblib \
soap \
sockets \
zip \
pcntl \
ftp \
&& docker-php-ext-enable \
sqlsrv \
pdo_sqlsrv
# Composer
RUN wget https://getcomposer.org/composer.phar && mv composer.phar /usr/bin/composer && chmod +x /usr/bin/composer
RUN mkdir /fogger && chmod 777 /fogger
COPY . /app
WORKDIR /app
#RUN composer install --no-dev
RUN composer install
ENTRYPOINT ["php", "bin/console"]
CMD ["--help"]