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
srct.gmu.io
Commits
7141b9e7
Commit
7141b9e7
authored
Aug 29, 2014
by
Renfred Harper
Browse files
Add Dockerfile
parent
046dd1d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
0 → 100644
View file @
7141b9e7
############################################################
# Dockerfile to build SRCTweb flask application
# Based on Ubuntu
############################################################
# Instructions:
#
# Build: sudo docker build -t srctweb .
# Run: sudo docker run -p 8000:80 -i -t -d srctweb
#
# You'll need to reverse proxy port 8000 via nginx
# Set the base image to Ubuntu
FROM
ubuntu
# File Author / Maintainer
MAINTAINER
Student-Run Computing and Technology - GMU
# Update the sources list
RUN
apt-get update
# Install basic applications
RUN
apt-get
install
-y
tar
git curl nano wget dialog net-tools build-essential
# Install Python and Basic Python Tools
RUN
apt-get
install
-y
python python-dev python-distribute python-pip
# Clone down SRCT-Web
RUN
git clone https://github.com/srct/srctweb.git srctweb
# Get pip to download and install requirements:
RUN
pip
install
-r
/srctweb/requirements.txt
# Expose ports
EXPOSE
80
# Set the default directory where CMD will execute
WORKDIR
/srctweb/srctweb
# Use Gunicorn to serve the application
CMD
gunicorn srctweb:website -b 0.0.0.0:80
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