forked from redhat-cip/dci-control-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (21 loc) · 837 Bytes
/
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
FROM centos:7
LABEL name="DCI API" version="0.0.3"
LABEL maintainer="DCI Team <[email protected]>"
ENV LANG en_US.UTF-8
WORKDIR /opt/dci-control-server
COPY requirements.txt /opt/dci-control-server/
RUN yum -y install epel-release && \
yum -y install gcc git zeromq-devel \
python python2-devel python2-pip python2-setuptools \
python34 python34-devel python34-pip python34-setuptools && \
yum clean all && \
pip install --no-cache-dir -U pip && \
pip install --no-cache-dir -U tox && \
pip install --no-cache-dir -r requirements.txt
COPY tests/data/ca.key tests/data/ca.crt /etc/ssl/repo/
ENV PYTHONPATH /opt/dci-control-server
ENV DISABLE_DB_START 1
EXPOSE 5000
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["python", "/opt/dci-control-server/bin/dci-runtestserver"]