-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (24 loc) · 908 Bytes
/
Dockerfile
File metadata and controls
37 lines (24 loc) · 908 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
26
27
28
29
30
31
32
33
34
FROM tutum/apache-php
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
# Ubuntu Helper Tools (add-apt-repository)
RUN apt-get install -y software-properties-common python-software-properties --no-install-recommends
# Common and Build Tools
RUN apt-get install -y vim curl wget build-essential git-core --no-install-recommends
# Python and Python Tools
RUN apt-get install -y python-pip python python-dev supervisor --no-install-recommends
WORKDIR /app
ONBUILD RUN virtualenv /env
ONBUILD ADD requirements.txt /app/requirements.txt
ONBUILD RUN /env/bin/pip install -r /app/requirements.txt
ONBUILD ADD . /app
EXPOSE 80
CMD ["/env/bin/python", "main.py"]
# Build with
# docker build --rm -t=comp-think .
# Run with
# docker run --privileged -p 80:80 -i -t comp-think
# Debug with
# docker run --privileged -p 80:80 -i -t comp-think /bin/bash
# Go to
# http://think-dev.cs.vt.edu:8080/