Dockerfile 710 Bytes
Newer Older
Renfred Harper's avatar
Renfred Harper committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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