Created
June 20, 2020 21:25
-
-
Save ludndev/44731cf06d10ea17306fed4d019182aa to your computer and use it in GitHub Desktop.
webserver based on debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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