edit docker conf

This commit is contained in:
Florian Bezannier
2021-05-07 10:02:23 +02:00
parent ecec358855
commit e459ebca8b
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
FROM python:3
RUN git clone https://github.com/flobz/psa_car_controller.git /psa_car_controller/
FROM python:3-slim
COPY . /psa_car_controller/
WORKDIR /config
RUN pip3 install -r /psa_car_controller/requirements.txt
EXPOSE 8180
EXPOSE 5000
RUN chmod +x /psa_car_controller/docker_files/init.sh
CMD /psa_car_controller/docker_files/init.sh
+1 -1
View File
@@ -20,5 +20,5 @@ then
/bin/bash
else
echo "SHELL_ONLY = FALSE. Running server.py"
python3 /psa_car_controller/server.py -f /config/test.json -c /config/charge_config1.json -p 8180 -l 0.0.0.0
python3 /psa_car_controller/server.py -f /config/test.json -c /config/charge_config1.json -p 5000 -l 0.0.0.0
fi