-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 760 Bytes
/
Dockerfile
File metadata and controls
27 lines (19 loc) · 760 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
FROM registry.centos.org/centos/centos:7
MAINTAINER Tomas Hrcka <thrcka@redhat.com>
ENV LANG=en_US.UTF-8 \
F8A_WORKER_VERSION=30100bf
RUN useradd coreapi
RUN yum --setopt=tsflags=nodocs install -y epel-release && \
yum --setopt=tsflags=nodocs install -y gcc python36-pip git wget python36-devel libxml2-devel libxslt-devel python36-pycurl && \
yum clean all
# Cache dependencies
COPY requirements.txt /tmp/
RUN pip3 install --upgrade pip && pip install --upgrade wheel
RUN pip3 install -r /tmp/requirements.txt
RUN pip3 install git+https://github.com/fabric8-analytics/fabric8-analytics-worker.git@${F8A_WORKER_VERSION}
ENV APP_DIR=/release_monitor
RUN mkdir -p ${APP_DIR}
WORKDIR ${APP_DIR}
COPY . .
USER coreapi
CMD ["python3", "run.py"]