docker-compose for development
This commit is contained in:
56
docker/fitness/service/apache2/Dockerfile
Normal file
56
docker/fitness/service/apache2/Dockerfile
Normal file
@@ -0,0 +1,56 @@
|
||||
FROM ubuntu:20.04
|
||||
MAINTAINER rocho02@gmail.com
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ENV TZ=Europe/Budapest
|
||||
|
||||
# apt-get
|
||||
RUN apt-get update \
|
||||
&& apt-get -y install bzip2 git nano wget zip unzip curl vim \
|
||||
&& apt-get -y install libmcrypt-dev libzzip-dev zziplib-bin zlib1g-dev \
|
||||
&& apt-get -y install apache2 build-essential
|
||||
# && ufw allow in "Apache Full" \o
|
||||
|
||||
RUN apt-get install -y php php-pear php-dev libmcrypt-dev
|
||||
|
||||
RUN apt-get -y install php \
|
||||
libapache2-mod-php \
|
||||
php-mysql \
|
||||
php-xml \
|
||||
php-gd \
|
||||
php-mbstring \
|
||||
php-zip \
|
||||
php-soap \
|
||||
php-curl \
|
||||
php-pear \
|
||||
php-dev \
|
||||
libmcrypt-dev
|
||||
|
||||
RUN pecl channel-update pecl.php.net
|
||||
RUN pecl update-channels
|
||||
RUN pecl install mcrypt
|
||||
|
||||
RUN apt-get -y install \
|
||||
# Required by composer
|
||||
git \
|
||||
zlib1g-dev \
|
||||
--no-install-recommends
|
||||
|
||||
|
||||
RUN a2enmod headers
|
||||
RUN a2enmod rewrite
|
||||
|
||||
COPY 000-default.conf /etc/apache2/sites-available/
|
||||
|
||||
COPY index.html /var/www/html/
|
||||
|
||||
COPY apache2.conf /etc/apache2/
|
||||
|
||||
RUN apt-get install -y certbot python3-certbot-apache
|
||||
|
||||
# Ports
|
||||
EXPOSE 80
|
||||
|
||||
# Default command
|
||||
CMD ["apachectl", "-D", "FOREGROUND"]
|
||||
|
||||
Reference in New Issue
Block a user