Rename runtime -> barrel
This commit is contained in:
parent
bc16eb5893
commit
2b8d3e817d
13 changed files with 7 additions and 7 deletions
81
distillery/resources/compose/barrel/Dockerfile
Normal file
81
distillery/resources/compose/barrel/Dockerfile
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
FROM php:7-apache-buster
|
||||
WORKDIR /var/www
|
||||
|
||||
# install and enable the various required php extension
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libcurl4-openssl-dev curl \
|
||||
libpng-dev \
|
||||
libicu-dev \
|
||||
libxml2-dev \
|
||||
libssh2-1-dev \
|
||||
sudo \
|
||||
zip unzip \
|
||||
default-mysql-client \
|
||||
imagemagick \
|
||||
git \
|
||||
vim \
|
||||
&& \
|
||||
docker-php-source extract && \
|
||||
docker-php-ext-install \
|
||||
curl \
|
||||
gd \
|
||||
intl \
|
||||
soap \
|
||||
mysqli \
|
||||
opcache \
|
||||
pdo_mysql \
|
||||
xml \
|
||||
xmlrpc \
|
||||
&& \
|
||||
pecl install ssh2-1.2 && \
|
||||
docker-php-ext-enable \
|
||||
curl \
|
||||
gd \
|
||||
intl \
|
||||
mysqli \
|
||||
opcache \
|
||||
pdo_mysql \
|
||||
soap \
|
||||
ssh2 \
|
||||
mysqli \
|
||||
xml \
|
||||
xmlrpc \
|
||||
&& \
|
||||
docker-php-source delete
|
||||
|
||||
# enable the apache rewrite mod
|
||||
RUN a2enmod rewrite
|
||||
|
||||
# install composer and add it to path
|
||||
RUN curl -sS https://getcomposer.org/installer | php && \
|
||||
mv composer.phar /usr/local/bin/composer
|
||||
ENV PATH "/usr/local/bin:/var/www/data/project/vendor/bin:$PATH"
|
||||
|
||||
# remove default configuration
|
||||
RUN rm /etc/apache2/sites-available/*.conf && \
|
||||
rm /etc/apache2/sites-enabled/*.conf
|
||||
|
||||
ADD patch/easyrdf.patch /patch/easyrdf.patch
|
||||
|
||||
# Add wisski configuration
|
||||
ADD conf/ports.conf /etc/apache2/ports.conf
|
||||
ADD conf/wisski.conf /etc/apache2/sites-available/wisski.conf
|
||||
RUN a2ensite wisski
|
||||
|
||||
# volumes for composer
|
||||
VOLUME /var/www/.composer
|
||||
VOLUME /var/www/data
|
||||
|
||||
# increase the php memory limit to 2g
|
||||
RUN echo 'memory_limit=2G' > /usr/local/etc/php/conf.d/memory-limit.ini
|
||||
|
||||
# Add and configure the entrypoint
|
||||
ADD scripts/entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||
CMD ["apache2-foreground"]
|
||||
|
||||
# Add the provision script
|
||||
ADD scripts/provision_container.sh /provision_container.sh
|
||||
|
||||
# expose port 8080
|
||||
EXPOSE 8080
|
||||
Loading…
Add table
Add a link
Reference in a new issue