Files
WMU-CS4430-Project/Dockerfile
2019-10-19 18:42:50 -04:00

28 lines
730 B
Docker

FROM ubuntu:18.04
USER root
WORKDIR /var/www
# Installing needed packages
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
mysql-server \
nginx \
php-fpm \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/www/html \
&& rm /etc/nginx/sites-enabled/default
# Copying in default nginx configuration
COPY /etc/ /etc/
# Setting up MySQL --Will come back to later, as it's not necessary and not playing very well with automation
#RUN mysql_secure_installation --use-defaults
# Copying in startup script
COPY /entrypoint.sh /
# Copying in web files
COPY /var/www/ /var/www/
# Expose Insecure Web, MySQL Server
EXPOSE 80 3306
CMD ["/bin/sh", "/entrypoint.sh"]