Prepare new endpoints for csit/vid internal api
[integration/csit.git] / tests / vid / resources / simulators / Dockerfile
index 5aa1392..de5b5fe 100644 (file)
@@ -1,8 +1,13 @@
-FROM frolvlad/alpine-python3
+FROM python:3-alpine3.9
+
+# `component` should be `so` or `aai`
+ARG component
+ENV component=$component
 
 COPY SO.py /
-ADD ./test_data_assets/ /
+RUN mkdir test_data_assets
+ADD ./test_data_assets/ /test_data_assets
 
 EXPOSE 8443
 
-CMD [ "python", "./SO.py", "expected_so_requests.json", "expected_so_responses.json" ]
+CMD python ./SO.py /test_data_assets/expected_${component}_requests.json /test_data_assets/expected_${component}_responses.json