Dockerfile 1.08 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
############################################################
# 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