blob: 091c34359e86b8478d60c41822b89d0eb26554bc (
plain)
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
31
|
FROM nexus3.onap.org:10001/onap/integration-python:8.0.0
MAINTAINER tommy@research.att.com
EXPOSE 10000
# it is an ONAP requirement to make, and switch to, a non root user
ARG user=onap
ARG group=onap
USER root
RUN mkdir -p /home/$user && \
chown -R $user:$group /home/$user && \
mkdir -p /var/log/$user && \
chown -R $user:$group /var/log/$user && \
mkdir -p /app && \
chown -R $user:$group /app
WORKDIR /app
COPY . /app
# alpine does not come with GCC like the standard "python" docker base does, which the install needs, see https://wiki.alpinelinux.org/wiki/GCC
RUN apk add build-base libffi-dev && \
pip install --upgrade pip && \
pip install .
# turn on file based EELF logging
ENV PROD_LOGGING 1
# Run the application
USER $user
CMD run.py
|