blob: 3f2c182637d02ef28d6f60dcff77b108b67af0d4 [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.9-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"]