This repository was archived by the owner on Jan 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.j2
More file actions
47 lines (42 loc) · 1.43 KB
/
Dockerfile.j2
File metadata and controls
47 lines (42 loc) · 1.43 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
FROM {{ FROM_IMAGE }}
LABEL maintainer="RiotKit" \
org.label-schema.name="phpbb" \
org.label-schema.description="PhpBB" \
org.label-schema.url="https://github.com/riotkit-org" \
org.label-schema.vcs-url="https://github.com/riotkit-org/docker-phpbb" \
org.label-schema.vendor="RiotKit" \
org.label-schema.version="{{ VERSION }}"
ENV NGINX_ENABLE_DEFAULT_LOCATION_INDEX=true \
WWW_USER_ID=1000 \
WWW_GROUP_ID=1000 \
PHPBB_VERSION={{ VERSION }} \
PHPBB_DB_TYPE=mysqli \
PHPBB_DB_HOST=db_mysql \
PHPBB_DB_PORT=3306 \
PHPBB_DB_NAME=phpbb \
PHPBB_DB_USER=phpbb \
PHPBB_DB_PASSWD=riotkit \
PHPBB_DB_TABLE_PREFIX=riotkit_ \
PHPBB_ACM_TYPE=file \
PHPBB_LOAD_EXTENSIONS= \
PHPBB_INSTALLED=false \
PHPBB_DEBUG=false \
PHPBB_DEBUG_EXTRA=false
ADD application.tar.gz /var/www/html/
ADD entrypoint.d/* /entrypoint.d/
ADD data /.data.template
RUN cd /var/www/html \
&& mv ./*phpbb-*/* ./ \
&& find . -maxdepth 1 \! \( -name phpBB \) -exec rm -rf '{}' \; \
&& mv phpBB/* ./ \
&& rm -rf phpBB \
&& chown www-data:www-data /var/www/html -R \
&& su www-data -s "/bin/bash" -c "composer install" \
\
&& mkdir /data -p \
&& mv /var/www/html/images /data/images \
&& mv /var/www/html/files /data/files \
&& mv /var/www/html/store /data/store \
&& mv /var/www/html/ext /data/ext \
&& chown www-data -R /data
COPY etc/nginx/conf.d/* /.etc.template/nginx/conf.d/