forked from carrier-io/control_tower
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (23 loc) · 895 Bytes
/
Copy pathDockerfile
File metadata and controls
28 lines (23 loc) · 895 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
FROM python:3.7-alpine
RUN apk update && apk add --no-cache git bash
RUN pip install --upgrade pip
RUN pip install --upgrade setuptools
RUN pip install --upgrade 'requests==2.20.0'
RUN pip install celery==4.3.0
RUN pip install kombu==4.5.0
RUN pip install vine==1.3.0
RUN apk add --no-cache --virtual .build-deps gcc musl-dev libffi-dev openssl-dev python3-dev make
RUN pip install dulwich==0.19.11
RUN pip install paramiko==2.6.0
RUN apk del .build-deps gcc musl-dev libffi-dev openssl-dev python3-dev make
ADD setup.py /tmp/setup.py
ADD requirements.txt /tmp/requirements.txt
COPY control_tower /tmp/control_tower
RUN cd /tmp && mkdir /tmp/reports && python setup.py install && \
rm -rf /tmp/control_tower /tmp/requirements.txt /tmp/setup.py
ENV PYTHONUNBUFFERED=1
ADD run.sh /bin/run.sh
RUN chmod +x /bin/run.sh
COPY config.yaml /tmp/
SHELL ["/bin/bash", "-c"]
ENTRYPOINT ["run.sh"]