forked from tongpitse/fixxx-schuldhulp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
43 lines (31 loc) · 1.27 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
FROM composer:2.0
FROM php:7.4.12-fpm-alpine
EXPOSE 80
COPY certificates/adp_rootca.crt /usr/local/share/ca-certificates/adp_rootca.crt
RUN chmod 644 /usr/local/share/ca-certificates/adp_rootca.crt \
&& update-ca-certificates --fresh
RUN apk update \
&& apk upgrade
RUN apk add bash
RUN apk add nginx \
&& mkdir /run/nginx
RUN apk add m4 perl autoconf dpkg-dev libbz2 dpkg libmagic file binutils gmp isl libgomp libatomic mpc1 gcc musl-dev libc-dev g++ make re2c
RUN apk add postgresql-dev libmcrypt libmcrypt-dev libxml2 libxml2-dev libzip-dev \
&& docker-php-ext-install pdo_pgsql pgsql opcache
RUN pecl install mcrypt-1.0.3 && docker-php-ext-enable mcrypt
RUN apk add icu-dev icu-libs
RUN docker-php-ext-install intl
RUN apk add freetype-dev jpeg-dev libpng-dev
RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/
RUN docker-php-ext-install gd
RUN docker-php-ext-install zip
RUN docker-php-ext-install soap
COPY --from=composer:2.0 /usr/bin/composer /usr/bin/composer
WORKDIR /
RUN mkdir /srv/app
COPY . /srv/app
WORKDIR /srv/app
ENV COMPOSER_ALLOW_SUPERUSER 1
RUN composer install --prefer-dist --no-progress --no-suggest --no-scripts
RUN composer dump-autoload --optimize --no-dev --classmap-authoritative
ENTRYPOINT /srv/app/docker-entrypoint.sh