Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

mkdir -p $WD/{setup,conf}
cd $WD/setup
cat << 'EOF' >Dockerfile
FROM debian:buster
MAINTAINER FreeSoftwareServers

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update
RUN apt-get install -y apache2
RUN apt-get clean 

ENTRYPOINT ["apache2ctl"]
chmod +x Dockerfile
echo y | docker image prune
docker stop dockerfiletest
docker container rm dockerfiletest
docker build --no-cache . -t="dockerfiletest"
docker run -d --name dockerfiletest -p 8541:80 dockerfiletest
  • No labels