-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
.gitpod.Dockerfile
30 lines (23 loc) · 1002 Bytes
/
.gitpod.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
FROM gitpod/workspace-mysql
USER root
# Update APT Database
### base ###
RUN apt-get update -q \
&& apt-get install -y php-dev
# Install XDebug
RUN curl -sSf http://xdebug.org/files/xdebug-3.1.3.tgz | tar xz \
&& cd xdebug-3.1.3 \
&& phpize \
&& ./configure \
&& make install -j$(nproc) \
&& printf 'zend_extension=xdebug\n[XDebug]\nxdebug.remote_enable=1\nxdebug.remote_autostart=1\n' > /etc/php/7.4/mods-available/xdebug.ini \
&& ln -sf /etc/php/7.4/mods-available/xdebug.ini "$(php-config --ini-dir)/20-xdebug.ini"
# Install latest composer v2 release
RUN curl -sSf https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer \
&& mkdir -p /home/gitpod/.config \
&& chown -R gitpod:gitpod /home/gitpod/.config
USER gitpod
# Install Changelogger
RUN composer global require churchtools/changelogger
# Add Workspace/Project composer bin folder to $PATH
ENV PATH="$PATH:$HOME/.config/composer/vendor/bin:$GITPOD_REPO_ROOT/vendor/bin"