added entrypoint

This commit is contained in:
andreas
2023-02-16 21:26:18 +00:00
parent ce43d3e9e9
commit 543a183545
3 changed files with 22 additions and 21 deletions

View File

@@ -2,14 +2,9 @@
# export DOCKER_BUILDKIT=1
docker run -d --rm --name www -p80:80 -v/root/kopano-docker/dist:/usr/local/apache2/htdocs httpd
docker build --no-cache --progress=plain -t webapp .
docker build -t webapp .
docker run --rm -it --name webapp \
-p8080:80 \
-e "MAIL_DOMAIN=ads65.de" \
-e "APACHE_RUN_DIR=/var/www" \
-e "APACHE_RUN_USER=www-data" \
-e "APACHE_RUN_GROUP=www-data" \
-e "APACHE_LOG_DIR=/var/log/apache2" \
-e "APACHE_PID_FILE=/var/run/apache2/apache2.pid" \
webapp
docker logs -f webapp
docker exec -it webapp bash