.
This commit is contained in:
89
Dockerfile
89
Dockerfile
@@ -1,44 +1,45 @@
|
||||
FROM php:8.1-apache
|
||||
|
||||
RUN mkdir -p /src && \
|
||||
cd /src && \
|
||||
curl -L -O https://download.phpbb.com/pub/release/3.3/3.3.10/phpBB-3.3.10.tar.bz2 && \
|
||||
curl -L https://github.com/DistributedProofreaders/dproofreaders/archive/refs/tags/R202303.tar.gz -o dproofreaders.R202303.tar.gz
|
||||
|
||||
# libpng12-dev for php gd extension
|
||||
# libyaz4-dev for php yaz extension
|
||||
# unzip is for c/tools/project_manager/add_files.php
|
||||
# aspell is for WordCheck
|
||||
# vim-tiny, less are just for debugging
|
||||
RUN apt-get update && \
|
||||
apt-get install -y libpng-dev libyaz4-dev unzip aspell mariadb-client vim-tiny less
|
||||
|
||||
# mysql is for dproofreaders
|
||||
# mysqli is for phpBB3 (note: things break if mysql is used instead of mysqli)
|
||||
RUN docker-php-ext-install mysqli gd gettext && \
|
||||
pecl install yaz-1.2.4
|
||||
|
||||
COPY app /app
|
||||
RUN mkdir -p /var/www/html/ && \
|
||||
cd /var/www/html/ && \
|
||||
tar xzf /src/dproofreaders.R202303.tar.gz && \
|
||||
tar xjf /src/phpBB-3.3.10.tar.bz2
|
||||
|
||||
# TODO: chmod
|
||||
RUN cd /var/www/html && \
|
||||
cp /app/lib/index.html /var/www/html/index.html && \
|
||||
mkdir -p \
|
||||
/tmp/sp_check \
|
||||
projects \
|
||||
d/locale \
|
||||
d/stats/automodify_logs \
|
||||
d/teams/avatar \
|
||||
d/teams/icon \
|
||||
d/pg \
|
||||
d/xmlfeeds \
|
||||
/home/dpscans && \
|
||||
chown -R www-data:www-data /tmp/sp_check projects d /home/dpscans
|
||||
|
||||
RUN cp /app/config/php.ini /usr/local/etc/php/
|
||||
|
||||
CMD ["/app/bin/runapache.bash"]
|
||||
FROM php:8-apache
|
||||
|
||||
RUN mkdir -p /src && \
|
||||
cd /src && \
|
||||
curl -L -O https://download.phpbb.com/pub/release/3.3/3.3.10/phpBB-3.3.10.tar.bz2 && \
|
||||
curl -L https://github.com/DistributedProofreaders/dproofreaders/archive/refs/tags/R202303.tar.gz -o dproofreaders.R202303.tar.gz
|
||||
|
||||
# libpng12-dev for php gd extension
|
||||
# libyaz4-dev for php yaz extension
|
||||
# unzip is for c/tools/project_manager/add_files.php
|
||||
# aspell is for WordCheck
|
||||
# joe is just for debugging
|
||||
RUN apt update && \
|
||||
apt install -y libpng-dev libyaz4-dev unzip aspell mariadb-client joe clamav
|
||||
|
||||
# mysql is for dproofreaders
|
||||
# mysqli is for phpBB3 (note: things break if mysql is used instead of mysqli)
|
||||
RUN docker-php-ext-install mysqli gd gettext && \
|
||||
pecl install yaz </dev/null
|
||||
COPY configs/php/* /usr/local/etc/php/conf.d/
|
||||
|
||||
#COPY app /app
|
||||
RUN mkdir -p /var/www/html/ && \
|
||||
cd /var/www/html/ && \
|
||||
tar xzf /src/dproofreaders.R202303.tar.gz && \
|
||||
tar xjf /src/phpBB-3.3.10.tar.bz2
|
||||
|
||||
## TODO: chmod
|
||||
#RUN cd /var/www/html && \
|
||||
# cp /app/lib/index.html /var/www/html/index.html && \
|
||||
# mkdir -p \
|
||||
# /tmp/sp_check \
|
||||
# projects \
|
||||
# d/locale \
|
||||
# d/stats/automodify_logs \
|
||||
# d/teams/avatar \
|
||||
# d/teams/icon \
|
||||
# d/pg \
|
||||
# d/xmlfeeds \
|
||||
# /home/dpscans && \
|
||||
# chown -R www-data:www-data /tmp/sp_check projects d /home/dpscans
|
||||
#
|
||||
#RUN cp /app/config/php.ini /usr/local/etc/php/
|
||||
#
|
||||
#CMD ["/app/bin/runapache.bash"]
|
||||
|
||||
44
Dockerfile.orig
Normal file
44
Dockerfile.orig
Normal file
@@ -0,0 +1,44 @@
|
||||
FROM php:8.1-apache
|
||||
|
||||
RUN mkdir -p /src && \
|
||||
cd /src && \
|
||||
curl -L -O https://download.phpbb.com/pub/release/3.3/3.3.10/phpBB-3.3.10.tar.bz2 && \
|
||||
curl -L https://github.com/DistributedProofreaders/dproofreaders/archive/refs/tags/R202303.tar.gz -o dproofreaders.R202303.tar.gz
|
||||
|
||||
# libpng12-dev for php gd extension
|
||||
# libyaz4-dev for php yaz extension
|
||||
# unzip is for c/tools/project_manager/add_files.php
|
||||
# aspell is for WordCheck
|
||||
# vim-tiny, less are just for debugging
|
||||
RUN apt-get update && \
|
||||
apt-get install -y libpng-dev libyaz4-dev unzip aspell mariadb-client vim-tiny less
|
||||
|
||||
# mysql is for dproofreaders
|
||||
# mysqli is for phpBB3 (note: things break if mysql is used instead of mysqli)
|
||||
RUN docker-php-ext-install mysqli gd gettext && \
|
||||
pecl install yaz-1.2.4
|
||||
|
||||
COPY app /app
|
||||
RUN mkdir -p /var/www/html/ && \
|
||||
cd /var/www/html/ && \
|
||||
tar xzf /src/dproofreaders.R202303.tar.gz && \
|
||||
tar xjf /src/phpBB-3.3.10.tar.bz2
|
||||
|
||||
# TODO: chmod
|
||||
RUN cd /var/www/html && \
|
||||
cp /app/lib/index.html /var/www/html/index.html && \
|
||||
mkdir -p \
|
||||
/tmp/sp_check \
|
||||
projects \
|
||||
d/locale \
|
||||
d/stats/automodify_logs \
|
||||
d/teams/avatar \
|
||||
d/teams/icon \
|
||||
d/pg \
|
||||
d/xmlfeeds \
|
||||
/home/dpscans && \
|
||||
chown -R www-data:www-data /tmp/sp_check projects d /home/dpscans
|
||||
|
||||
RUN cp /app/config/php.ini /usr/local/etc/php/
|
||||
|
||||
CMD ["/app/bin/runapache.bash"]
|
||||
2
configs/php/timezone.ini
Normal file
2
configs/php/timezone.ini
Normal file
@@ -0,0 +1,2 @@
|
||||
[Date]
|
||||
date.timezone=US/Pacific
|
||||
1
configs/php/yaz.ini
Normal file
1
configs/php/yaz.ini
Normal file
@@ -0,0 +1 @@
|
||||
extension=yaz.so
|
||||
Reference in New Issue
Block a user