LotGDocker/lotgd-web/Dockerfile

18 lines
535 B
Docker
Raw Permalink Normal View History

2020-08-17 19:16:42 -04:00
#This image is the NGINX webserver that holds the LotGD PHP files and connects to the DB and PHP containers
FROM nginx:alpine
MAINTAINER Chris P
#Copies the game's PHP files to the container
COPY lotgd /var/www/lotgd
#Removes the default NGINX config (otherwise localhost won't work)
RUN rm /etc/nginx/conf.d/default.conf
#Copies in the pre-configured lotgd config
COPY lotgd.conf /etc/nginx/conf.d/lotgd.conf
#Port 443 is exposed in case one wants to use SSL, but there is no cert, reverse proxy is advised
EXPOSE 80
EXPOSE 443