add config path

This commit is contained in:
Florian Bezannier
2021-06-16 13:26:27 +02:00
parent 8df016bd1a
commit 47226b0d19
2 changed files with 2 additions and 1 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 PSACC_OPTIONS="-c -r -d --web-conf"
ENV PSACC_BASE_PATH=/ PSACC_PORT=5000 PSACC_OPTIONS="-c -r -d --web-conf" PSACC_CONFIG_DIR="/config"
CMD /psa_car_controller/docker_files/init.sh
+1
View File
@@ -1,3 +1,4 @@
#!/bin/bash
echo "Containerised psa_car_controller loading..."
cd $PSACC_CONFIG_DIR
python3 /psa_car_controller/server.py -p $PSACC_PORT -l 0.0.0.0 -b $PSACC_BASE_PATH $PSACC_OPTIONS