From 452d119461392961210c6b714056b9e37e8f016c Mon Sep 17 00:00:00 2001 From: Fredrik Baberg Date: Mon, 20 Mar 2023 23:29:10 +0100 Subject: [PATCH] Add test to Dockerfile --- 3dprinter-octoprint/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/3dprinter-octoprint/Dockerfile b/3dprinter-octoprint/Dockerfile index cbf7f3f..86bf5ae 100644 --- a/3dprinter-octoprint/Dockerfile +++ b/3dprinter-octoprint/Dockerfile @@ -46,6 +46,7 @@ RUN chmod +x /etc/cont-init.d/*.sh RUN chmod +x /etc/services.d/*/* RUN chmod +x /scripts/*.sh -# # Test install, verify that install will be possible. -# RUN sed 's/#!/# #!/' /etc/cont-init.d/octoprint.sh > /tmp/octoprint.sh -# # RUN bash /tmp/octoprint.sh +# Test install, verify that install will be possible. +RUN sed 's/#!/# #!/' /etc/cont-init.d/octoprint.sh > /tmp/octoprint.sh +RUN bash /tmp/octoprint.sh \ + && rm -rf /data/* /tmp/*