mirror of
https://github.com/Telecominfraproject/openafc_final.git
synced 2026-01-27 02:22:02 +00:00
36 lines
932 B
Docker
36 lines
932 B
Docker
#
|
|
# Copyright (C) 2021 Broadcom. All rights reserved. The term "Broadcom"
|
|
# refers solely to the Broadcom Inc. corporate affiliate that owns
|
|
# the software below. This work is licensed under the OpenAFC Project License,
|
|
# a copy of which is included with this software program
|
|
#
|
|
|
|
FROM python:3.11-slim
|
|
|
|
WORKDIR /usr/app
|
|
COPY tests/requirements.txt /usr/app/
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install net-tools \
|
|
&& pip3 install --no-cache-dir -r requirements.txt \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY \
|
|
tests/afc_tests.py \
|
|
tests/_version.py \
|
|
tests/_afc_errors.py \
|
|
tests/_afc_types.py \
|
|
tests/_wfa_types.py \
|
|
tests/afc_input.sqlite3 \
|
|
tools/certs.sh \
|
|
dispatcher/certs/servers/server.bundle.pem \
|
|
dispatcher/certs/clients/test_ca_crt.pem \
|
|
dispatcher/certs/clients/test_ca_key.pem \
|
|
/usr/app/
|
|
|
|
ENV AFC_CA_CERT_PATH ${AFC_CA_CERT_PATH:-/usr/app}
|
|
ENV PYTHONPATH=/usr/app
|
|
|
|
ENTRYPOINT ["/usr/app/afc_tests.py"]
|
|
CMD ["-h"]
|