Shad Ansari | 380bb25 | 2022-06-09 12:35:16 -0700 | [diff] [blame] | 1 | # |
| 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, Gabriel | 987969c | 2022-09-16 18:23:16 -0700 | [diff] [blame^] | 6 | FROM python:3.9-slim-buster |
Arrobo, Gabriel | 645c571 | 2022-09-12 13:28:25 -0700 | [diff] [blame] | 7 | |
| 8 | RUN useradd -ms /bin/bash ubuntu |
| 9 | USER ubuntu |
| 10 | WORKDIR /home/ubuntu |
| 11 | |
| 12 | ENV PATH="/home/ubuntu/.local/bin:${PATH}" |
| 13 | RUN python3 -m pip install --upgrade pip |
| 14 | COPY --chown=ubuntu:ubuntu requirements.txt requirements.txt |
| 15 | RUN python3 -m pip install --user -r requirements.txt |
| 16 | COPY --chown=ubuntu:ubuntu . . |
Shad Ansari | 1dcfdb3 | 2022-01-24 23:13:06 +0000 | [diff] [blame] | 17 | EXPOSE 3333 |
Arrobo, Gabriel | 5b16e3b | 2022-08-25 10:01:04 -0700 | [diff] [blame] | 18 | ENTRYPOINT [ "python3", "./network-diag-app.py"] |