This commit is contained in:
Mathematical Michael 2023-09-28 22:48:42 +00:00
parent 1a7d9f2e04
commit e4d31e93f4
3 changed files with 1 additions and 21 deletions

View File

@ -1,3 +1,2 @@
FROM httpd:2.4
COPY ./public_html/ /usr/local/apache2/htdocs/
COPY ./my-httpd.conf /usr/local/apache2/conf/httpd.conf

View File

@ -1,19 +0,0 @@
all:
@make stop
@make build
@make start
build:
docker build -t apache2 .
start: build
docker run -dit --rm \
--name webserver \
-p 8080:80 \
-v $(shell pwd)/public_html:/usr/local/apache2/htdocs \
apache2
stop:
@docker stop webserver || echo "No running container, run \`make start\` to start webserver. \n"
.PHONY: all build start stop

View File

@ -1,7 +1,7 @@
# Plain Apache Server
## Instructions
`make` and visit localhost:8080
`docker-compose up -d` and visit localhost:8080
## Required
Docker