generated from Monogramm/wp-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitpod.Dockerfile
39 lines (32 loc) · 1.09 KB
/
.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
31
32
33
34
35
36
37
38
39
FROM gitpod/workspace-mysql:latest
# Install custom tools, runtimes, etc.
# For example "bastet", a command-line tetris clone:
# RUN brew install bastet
#
# More information: https://www.gitpod.io/docs/config-docker/
USER root
RUN set -ex; \
mkdir -p /var/log/nginx /var/log/php /var/log/apache2/; \
chown gitpod:gitpod /var/log/nginx /var/log/php /var/log/apache2/; \
apt-get update; \
apt-get install -y \
ghostscript \
php7.4-fpm \
php7.4-xdebug \
; \
chown -R gitpod:gitpod /etc/php
COPY .gitpod/nginx.conf /etc/nginx/nginx.conf
COPY .gitpod/php-fpm.conf /etc/php/7.4/fpm/php-fpm.conf
ENV WORDPRESS_DB_NAME=wordpress \
WORDPRESS_DB_USER=username \
WORDPRESS_DB_PASSWORD=password \
WORDPRESS_DB_HOST=localhost:3306 \
WP_CORE_DIR=.gitpod/www \
NGINX_DOCROOT_IN_REPO=.gitpod/www \
APACHE_DOCROOT_IN_REPO=.gitpod/www \
WP_PLUGIN=wp-plugin-template \
PROJECT_DIR=.gitpod/www/wp-content/plugins/${WP_PLUGIN}
# FIXME One of these crashes Gitpod if set
# TMPDIR=.gitpod/tmp \
# WP_TESTS_DIR=.gitpod/tmp/wordpress-tests-lib
USER gitpod