mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-21 17:06:18 +00:00
edit docker conf
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user