Notez le déroulement du démarrage du conteneur Apache avec Docker
version: '3'
services:
apache:
build: apache
container_name: apache
ports:
- 80:80
volumes:
- ./apache/conf/httpd.conf:/usr/local/apache2/conf/httpd.conf
apache
FROM httpd:latest
RUN apt update \
&& apt install -y \
git \
gcc \
make \
build-essential \
wget \
curl \
llvm \
xz-utils \
tk-dev \
zlib1g-dev \
libncurses5-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
libxmlsec1-dev \
liblzma-dev \
libpq-dev \
libffi-dev
WORKDIR /usr/local/apache2
docker-compose up -d apache
Recommended Posts