From df5d019877b6512fa456c5720401a49a209cb3bc Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Thu, 7 Apr 2022 21:25:02 +0700 Subject: [PATCH] add automatic default configuration upload --- Dockerfile | 4 +++- start.sh | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 start.sh diff --git a/Dockerfile b/Dockerfile index c96960c..29011b8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..60fbff3 --- /dev/null +++ b/start.sh @@ -0,0 +1,2 @@ +cp -n /printer.cfg /home/octoprint/.octoprint/printer.cfg +python3 /start.py \ No newline at end of file