-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile.rhel
28 lines (19 loc) · 927 Bytes
/
Dockerfile.rhel
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
# base image source https://github.com/rhdt/EL-Dockerfiles/blob/master/base/python3/Dockerfile
FROM quay.io/openshiftio/rhel-base-python3:latest
ENV F8A_WORKER_VERSION=d403113 \
AUTH_VERSION=fff8f49
LABEL name="f8analytics ingestion services" \
description="APIs to invoke worker flow." \
git-url="https://github.com/fabric8-analytics/f8a-data-ingestion-service" \
git-path="/" \
target-file="Dockerfile" \
app-license="GPL-3.0"
COPY ./requirements.txt /
RUN pip3 install --upgrade pip
RUN pip3 install -r requirements.txt && rm requirements.txt
COPY ./src /src
RUN pip3 install git+https://github.com/fabric8-analytics/fabric8-analytics-worker.git@${F8A_WORKER_VERSION}
RUN pip3 install git+https://github.com/fabric8-analytics/fabric8-analytics-auth.git@${AUTH_VERSION}
ADD scripts/entrypoint.sh /bin/entrypoint.sh
RUN chmod 777 /bin/entrypoint.sh
ENTRYPOINT ["/bin/entrypoint.sh"]