minimize
This commit is contained in:
parent
1a7d9f2e04
commit
e4d31e93f4
@ -1,3 +1,2 @@
|
|||||||
FROM httpd:2.4
|
FROM httpd:2.4
|
||||||
COPY ./public_html/ /usr/local/apache2/htdocs/
|
|
||||||
COPY ./my-httpd.conf /usr/local/apache2/conf/httpd.conf
|
COPY ./my-httpd.conf /usr/local/apache2/conf/httpd.conf
|
||||||
|
19
Makefile
19
Makefile
@ -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
|
|
Loading…
Reference in New Issue
Block a user