Skip to content

Instantly share code, notes, and snippets.

@ludndev
Created June 20, 2020 21:25
Show Gist options
  • Save ludndev/44731cf06d10ea17306fed4d019182aa to your computer and use it in GitHub Desktop.
Save ludndev/44731cf06d10ea17306fed4d019182aa to your computer and use it in GitHub Desktop.
webserver based on debian
FROM debian:latest
RUN apt-get update -yq \
&& apt-get install apache2 apache2-utils -yq \
&& apt-get clean -y
ADD ./server/ /server/
RUN chmod +x /server/config.sh
RUN bash /server/config.sh
WORKDIR /server/public
EXPOSE 80
EXPOSE 443
ENTRYPOINT ["apache2ctl"]
CMD ["-DFOREGROUND"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment