blob: 3f2c182637d02ef28d6f60dcff77b108b67af0d4 [file] [log] [blame]
Shad Ansari380bb252022-06-09 12:35:16 -07001#
2# SPDX-FileCopyrightText: 2022-present Intel Corporation
3# SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
4# SPDX-License-Identifier: Apache-2.0
5#
Arrobo, Gabriel987969c2022-09-16 18:23:16 -07006FROM python:3.9-slim-buster
Arrobo, Gabriel645c5712022-09-12 13:28:25 -07007
8RUN useradd -ms /bin/bash ubuntu
9USER ubuntu
10WORKDIR /home/ubuntu
11
12ENV PATH="/home/ubuntu/.local/bin:${PATH}"
13RUN python3 -m pip install --upgrade pip
14COPY --chown=ubuntu:ubuntu requirements.txt requirements.txt
15RUN python3 -m pip install --user -r requirements.txt
16COPY --chown=ubuntu:ubuntu . .
Shad Ansari1dcfdb32022-01-24 23:13:06 +000017EXPOSE 3333
Arrobo, Gabriel5b16e3b2022-08-25 10:01:04 -070018ENTRYPOINT [ "python3", "./network-diag-app.py"]