diff options
author | Lovett, Trevor <trevor.lovett@att.com> | 2019-02-21 12:56:03 -0600 |
---|---|---|
committer | Lovett, Trevor <trevor.lovett@att.com> | 2019-02-21 12:56:03 -0600 |
commit | 2f2f281da7304232cb94723f9c2ada32df884da5 (patch) | |
tree | 71873336d3d10f97fefeb773ad44e35d00790e43 /Dockerfile | |
parent | ed9ad702cff64e3098ac54286bf0f40cdf277a44 (diff) |
[VVP] Ensure VVP Docker runs as non-root
Also ensures VVP only executes the heat tests and ignores
app_tests
Change-Id: I59ba2f72ac694dee4e705787d24a78ac983afa3a
Issue-ID: VVP-175
Signed-off-by: Lovett, Trevor <trevor.lovett@att.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -42,8 +42,11 @@ COPY requirements.txt / RUN pip install --upgrade pip RUN pip install --no-use-pep517 -r /requirements.txt -COPY ice_validator/ /vvp +RUN adduser -D vvpuser +USER vvpuser + +COPY --chown=vvpuser ice_validator/ /vvp WORKDIR /vvp -ENTRYPOINT ["pytest"] +ENTRYPOINT ["pytest", "tests"] |