Files
WMU-CS4430-Project/Dockerfile
WilliamMiceli 44962f7d5d Added PHP-FPM
2019-10-19 14:54:39 -04:00

19 lines
475 B
Docker

FROM ubuntu:18.04
USER root
WORKDIR /var/www
# MySQL 5.7 (Homefully not version 8...)
RUN apt-get update && apt-get install -y \
mysql-server \
nginx \
php-fpm \
&& rm -rf /var/lib/apt/lists/*
# 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
COPY /entrypoint.sh /
# Expose Insecure Web, MySQL Server
EXPOSE 80 3306
CMD ["/bin/sh", "/entrypoint.sh"]