-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 738 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 738 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
FROM centurylink/apache-php:latest
MAINTAINER CentruyLink
# Install packages
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y upgrade && \
DEBIAN_FRONTEND=noninteractive apt-get -y install supervisor pwgen && \
apt-get -y install mysql-client unzip
# Download CodeIgniter into /app
RUN rm -fr /app && mkdir /app && \
curl -OL https://ellislab.com/codeigniter/download && \
unzip download -d /tmp && \
cp -Rf /tmp/CodeIgniter_2.2.0/* /app
rm download
# Add configuration with info for Codeingiter to connect to DB
ADD database.php /app/application/config/database.php
RUN chmod 644 /app/application/config/database.php
# Fix permissions for apache
RUN chown -R www-data:www-data /app
EXPOSE 80
CMD ["/run.sh"]