Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
photos
Commits
35a347d1
Commit
35a347d1
authored
Aug 28, 2014
by
Renfred Harper
Browse files
Add Dockerfile
parent
16b1cc28
Changes
1
Show whitespace changes
Inline
Side-by-side
Dockerfile
0 → 100644
View file @
35a347d1
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment