blob: 39e3e97a6c19edb310ac3a2222ee719d2b39c8e3 [file] [log] [blame]
#
# SPDX-FileCopyrightText: 2022-present Intel Corporation
# SPDX-FileCopyrightText: 2020-present Open Networking Foundation <info@opennetworking.org>
# SPDX-License-Identifier: Apache-2.0
#
FROM python:3.6-slim-buster
RUN useradd -ms /bin/bash ubuntu
USER ubuntu
WORKDIR /home/ubuntu
ENV PATH="/home/ubuntu/.local/bin:${PATH}"
RUN python3 -m pip install --upgrade pip
COPY --chown=ubuntu:ubuntu requirements.txt requirements.txt
RUN python3 -m pip install --user -r requirements.txt
COPY --chown=ubuntu:ubuntu . .
EXPOSE 3333
ENTRYPOINT [ "python3", "./network-diag-app.py"]