-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (38 loc) · 1.2 KB
/
Dockerfile
File metadata and controls
48 lines (38 loc) · 1.2 KB
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
42
43
44
45
46
47
48
FROM centos:7
MAINTAINER OSU OSL support@osuosl.org
EXPOSE 8000
# Dockerfiles do not support "here documents"
RUN echo "[osuosl]" > /etc/yum.repos.d/osuosl.repo
RUN echo "name=OSUOSL Repository 6 - x86_64" >> /etc/yum.repos.d/osuosl.repo
RUN echo "baseurl=http://ftp.osuosl.org/pub/osl/repos/yum/6/x86_64" >> /etc/yum.repos.d/osuosl.repo
RUN echo "enabled=1" >> /etc/yum.repos.d/osuosl.repo
RUN echo "gpgcheck=0" >> /etc/yum.repos.d/osuosl.repo
RUN yum -y update && yum -y install \
epel-release
RUN yum -y update && yum -y install \
bzip2 \
cairo-devel \
gcc \
gcc-c++ \
libffi \
libffi-devel \
mysql \
mysql-devel \
nodejs \
npm \
osuosl-dssp \
python-devel \
python-setuptools \
tar
RUN npm -g install phantomjs
RUN easy_install pip
# Copy and configure pgd
WORKDIR /opt/pgd
RUN mkdir /opt/pgd/media /opt/pgd/static
# Copy requirements.txt separately for better caching
COPY ./requirements.txt /opt/pgd/requirements.txt
RUN pip install -r requirements.txt
COPY . /opt/pgd/
# This key is suitable for development -- do not use it for production!
ENV SECRET_KEY f7rbxi(+clw%v)1_j&q#aps^pk7$$-0(3gczqgq#l_y-nyt-w5
CMD ["python", "manage.py", "runserver", "--insecure", "0.0.0.0:8000"]