-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-base
31 lines (24 loc) · 1.45 KB
/
Dockerfile-base
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
# This Dockerfile will be builded on DockerHub automated build configuration to create:
# - lorenzocalamandrei/angular-container:*.*.*-base
# where *.*.* is the version of this Dockerfile
# The version will be taken from the tag by git.
FROM php:7.4.2-fpm
LABEL mantainer="Lorenzo Calamandrei <[email protected]>"
# user 1000
RUN mkdir /home/local \
&& useradd -u 1000 local -d "/home/local" \
&& chown local.local /home/local
# update
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install -y --no-install-recommends apt-utils libzip-dev zip zlib1g-dev libxml2-dev libssl-dev libonig-dev > /dev/null
# laravel deps
RUN docker-php-ext-configure zip > /dev/null && docker-php-ext-install zip > /dev/null
RUN docker-php-ext-configure bcmath > /dev/null && docker-php-ext-install bcmath > /dev/null
RUN docker-php-ext-configure ctype > /dev/null && docker-php-ext-install ctype > /dev/null
RUN docker-php-ext-configure json > /dev/null && docker-php-ext-install json > /dev/null
RUN docker-php-ext-configure pdo > /dev/null && docker-php-ext-install pdo > /dev/null
RUN docker-php-ext-configure pdo_mysql > /dev/null && docker-php-ext-install pdo_mysql > /dev/null
RUN docker-php-ext-configure tokenizer > /dev/null && docker-php-ext-install tokenizer > /dev/null
RUN docker-php-ext-configure simplexml > /dev/null && docker-php-ext-install simplexml > /dev/null
RUN docker-php-ext-configure xml > /dev/null && docker-php-ext-install xml > /dev/null
USER 1000