-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (26 loc) · 1.03 KB
/
Dockerfile
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
# Set the base image to Ubuntu
FROM ubuntu:14.04
# File Author / Maintainer
MAINTAINER Renfred Harper
# 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 software-properties-common
# Install Python and Basic Python Tools
RUN apt-get install -y python3 python3-pip
# Ruby and Compass
RUN apt-get install -y -qq ruby1.9.1-dev make
RUN gem install --no-rdoc --no-ri compass
# Node for installing Browserify and Babel
RUN apt-add-repository ppa:chris-lea/node.js
RUN apt-get update && apt-get install -y nodejs
RUN npm install -g browserify && npm install --save-dev babelify resolvify
RUN git clone https://github.com/renfredxh/snueue.git snueue
# Install the latest version of pip
RUN easy_install3 -U pip
# Get pip to download and install requirements:
RUN pip install -r /snueue/requirements.txt
EXPOSE 80
WORKDIR /snueue
# Use Gunicorn to serve the application
CMD gunicorn app:app -b 0.0.0.0:80 --log-file - --error-logfile - --access-logfile -