add default options

This commit is contained in:
Florian Bezannier
2021-05-31 19:38:36 +02:00
parent fa43c1a820
commit 1d95c86b2a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4,5 +4,5 @@ WORKDIR /config
RUN pip3 install --no-cache-dir -r /psa_car_controller/requirements.txt
EXPOSE 5000
RUN chmod +x /psa_car_controller/docker_files/init.sh
ENV PSACC_BASE_PATH=/ PSACC_PORT=5000
ENV PSACC_BASE_PATH=/ PSACC_PORT=5000 PSACC_OPTIONS="-c -r -d --web-conf"
CMD /psa_car_controller/docker_files/init.sh
+1 -1
View File
@@ -1,3 +1,3 @@
#!/bin/bash
echo "Containerised psa_car_controller loading..."
python3 /psa_car_controller/server.py -p $PSACC_PORT -l 0.0.0.0 --web-conf -b $PSACC_BASE_PATH
python3 /psa_car_controller/server.py -p $PSACC_PORT -l 0.0.0.0 -b $PSACC_BASE_PATH $PSACC_OPTIONS