summaryrefslogtreecommitdiffstats
path: root/catalog-be/sdc-backend-init/Dockerfile
blob: 3ffcbe691aa09d50357513d78ebbd019cc693bcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM onap/base_sdc-python:1.7.0

# user/group args are inherited from base_sdc-python base image
COPY --chown=$user:$group scripts /home/$user/scripts

RUN chmod 770 -R /home/$user/scripts && \
    cd /home/$user/scripts && \
    python setup.py install --user

ENV PATH=$PATH:/home/$user/.local/bin

COPY --chown=$user:$group chef-solo /home/$user/chef-solo/

COPY --chown=$user:$group chef-repo/cookbooks /home/$user/chef-solo/cookbooks/

COPY --chown=$user:$group startup.sh /home/$user/

RUN chmod 770 /home/$user/startup.sh

WORKDIR /home/$user/

ENTRYPOINT /home/${user}/startup.sh