forked from fossasia/fossasia-engelsystem
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (24 loc) · 759 Bytes
/
Dockerfile
File metadata and controls
30 lines (24 loc) · 759 Bytes
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
26
27
28
29
30
FROM ubuntu:latest
MAINTAINER Sreeja Kamishetty <sreeja25kamishetty@gmail.com>
ENV DEBIAN_FRONTEND noninteractive
#Update
RUN apt-get update
RUN apt-get upgrade -y
#Install proper dependencies
RUN apt-get install -y git wget
#run the script
RUN apt-get install -y apache2
RUN apt-get install mysql-server php5-mysql
RUN mysql_install_db
RUN apt-get install php5 libapache2-mod-php5 php5-mcrypt
RUN service apache2 restart
RUN apt-cache search php5-cgi
#Clone the source
RUN git clone https://github.com/fossasia/engelsystem.git
#cd into the dir
WORKDIR engelsystem
#add the mysql root password
COPY config/config.default.php config/config.php
RUN mysql -u root -p engelsystem < db/install.sql
RUN mysql -u root -p engelsystem < db/update.sql
EXPOSE 80