forked from caltechads/deployfish
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 742 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 742 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
FROM centos:7
MAINTAINER IMSS ADS <imss-ads-staff@caltech.edu>
USER root
RUN yum -y install epel-release && yum -y makecache fast && yum -y update && yum -y install \
mysql \
&& yum -y clean all
# set our timezone to pacific time
WORKDIR /etc
RUN rm -rf localtime && ln -s /usr/share/zoneinfo/America/Los_Angeles localtime
# ---------------
# deployfish
# ---------------
COPY . /deployfish
WORKDIR /deployfish
# ---------------
# Entrypoint
# ---------------
RUN curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" && python get-pip.py && \
pip install awscli && \
python setup.py install && \
cp /deployfish/bin/entrypoint.sh /entrypoint.sh && \
chmod a+x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]