add automatic default configuration upload

This commit is contained in:
Siwat Sirichai 2022-04-07 21:25:02 +07:00
parent 559e0f7575
commit df5d019877
2 changed files with 5 additions and 1 deletions

View File

@ -86,5 +86,7 @@ RUN rm -f /bin/systemctl
COPY start.py /
COPY runklipper.py /
COPY start.sh /
COPY printer.cfg /
CMD ["/start.py"]
CMD bash /start.sh

2
start.sh Normal file
View File

@ -0,0 +1,2 @@
cp -n /printer.cfg /home/octoprint/.octoprint/printer.cfg
python3 /start.py