Merge "Addition to the first commit"
[sim/a1-interface.git] / near-rt-ric-simulator / scripts / Dockerfile
1 #
2 # ============LICENSE_START=======================================================
3 #  Copyright (C) 2020 Nordix Foundation.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #      http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 # ============LICENSE_END=========================================================
17 #
18
19 FROM python:3.8-slim-buster
20
21 WORKDIR /usr/src/app
22
23 RUN pip install connexion[swagger-ui]
24
25
26 COPY ./near-rt-ric-simulator/scripts/example_files/policy_instance_1_STD_QoSNudging_0.2.0.json policy_instance_1_STD_QoSNudging_0.2.0.json
27 COPY ./near-rt-ric-simulator/scripts/example_files/policy_instance_1_bis_STD_QoSNudging_0.2.0.json policy_instance_1_bis_STD_QoSNudging_0.2.0.json
28 COPY ./near-rt-ric-simulator/scripts/example_files/policy_instance_2_STD_QoSNudging_0.2.0.json policy_instance_2_STD_QoSNudging_0.2.0.json
29 COPY ./near-rt-ric-simulator/scripts/example_files/policy_type_STD_QoSNudging_0.2.0.json policy_type_STD_QoSNudging_0.2.0.json
30
31 COPY ./near-rt-ric-simulator/scripts/a1.py a1.py
32 COPY ./near-rt-ric-simulator/scripts/main.py main.py
33 COPY ./near-rt-ric-simulator/scripts/var_declaration.py var_declaration.py
34
35 COPY ./near-rt-ric-simulator/scripts/commands.sh commands.sh
36 COPY ./near-rt-ric-simulator/scripts/start_simulator.sh start_simulator.sh
37
38 COPY ./near-rt-ric-simulator/a1-openapi.yaml a1-openapi.yaml
39
40 CMD ["/bin/bash", "./run_me.sh"]