-
Notifications
You must be signed in to change notification settings - Fork 337
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (42 loc) · 1.39 KB
/
Dockerfile
File metadata and controls
48 lines (42 loc) · 1.39 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
ARG base
FROM ${base}
USER root
# Dazzle does not rebuild a layer until one of its lines are changed. Increase this counter to rebuild this layer.
ENV TRIGGER_REBUILD=2
# Install composer
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
RUN for _ppa in 'ppa:ondrej/php' 'ppa:ondrej/apache2' 'ppa:ondrej/nginx'; do add-apt-repository -y "$_ppa"; done \
&& install-packages \
apache2 \
nginx \
nginx-extras \
nginx-doc \
php \
php-all-dev \
php-bcmath \
php-common \
php-curl \
php-date \
php-fpm \
php-gd \
php-intl \
php-json \
php-mbstring \
php-mysql \
php-net-ftp \
php-pgsql \
php-pear \
php-sqlite3 \
php-tokenizer \
php-xml \
php-zip \
&& mkdir -p /var/run/nginx \
&& ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/rewrite.load \
&& chown -R gitpod:gitpod /etc/apache2 /var/run/apache2 /var/lock/apache2 /var/log/apache2 \
&& chown -R gitpod:gitpod /etc/nginx /var/run/nginx /var/lib/nginx/ /var/log/nginx/
COPY --chown=gitpod:gitpod apache2/ /etc/apache2/
COPY --chown=gitpod:gitpod nginx /etc/nginx/
## The directory relative to your git repository that will be served by Apache / Nginx
ENV APACHE_DOCROOT_IN_REPO="public"
ENV NGINX_DOCROOT_IN_REPO="public"
USER gitpod