Commit 35a347d1 authored by Renfred Harper's avatar Renfred Harper
Browse files

Add Dockerfile

parent 16b1cc28
FROM ubuntu:14.04
MAINTAINER Studnt-Run Computing and Technology - GMU
# Install base packages
RUN apt-get update
RUN apt-get -y install git curl nano wget build-essential
# Install apache and PHP
RUN apt-get -y install apache2 mysql-server libapache2-mod-php5
RUN apt-get -y install php5-mysql php5-gd php5-curl
RUN sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php5/apache2/php.ini
# Link /var/www to /app directory
RUN mkdir -p /app && rm -fr /var/www/html && ln -s /app /var/www/html
WORKDIR /app
# Clone lychee
RUN git clone https://github.com/srct/Lychee.git .
# Set file permissions
RUN chown www-data:www-data /app -R
RUN chmod -R 777 uploads/ data/
EXPOSE 80
CMD script/server
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment