docker: remove unused octoprint image

This commit is contained in:
Markus Küffner
2022-07-08 01:11:31 +02:00
parent 82a1441047
commit 8d2a775ab4
3 changed files with 0 additions and 50 deletions

View File

@@ -1,35 +0,0 @@
ARG PYTHON_VERSION=3.9
## Install OctoPrint and Plugins in venv
FROM python:${PYTHON_VERSION} as build
ARG VERSION=1.7.2
WORKDIR /opt
COPY plugins.txt plugins.txt
RUN python -m venv venv \
&& venv/bin/pip install OctoPrint==${VERSION} \
&& venv/bin/pip install -r plugins.txt
## Runtime Image
FROM python:${PYTHON_VERSION}-slim as run
WORKDIR /opt
COPY --from=build /opt/venv venv
COPY apt.txt apt.txt
RUN apt update \
&& apt install -y $(grep -vE "^\s*#" apt.txt | tr "\n" " ") \
&& apt clean
RUN mkdir run cfg
RUN groupadd octoprint --gid 1000 \
&& useradd octoprint --uid 1000 --gid octoprint \
&& usermod octoprint --append --groups dialout \
&& chown -R octoprint:octoprint /opt/*
USER octoprint
EXPOSE 5000
VOLUME ["/opt/run", "/opt/cfg"]
ENTRYPOINT ["/opt/venv/bin/octoprint", "serve"]
CMD ["-b", "/opt/cfg"]

View File

@@ -1,5 +0,0 @@
# PrusaSlicerThumbnails
libopenjp2-7
libjpeg62-turbo
libtiff5
libxcb1

View File

@@ -1,10 +0,0 @@
https://github.com/OllisGit/OctoPrint-PrintJobHistory/releases/latest/download/master.zip
https://github.com/eyal0/OctoPrint-PrintTimeGenius/archive/master.zip
https://github.com/OllisGit/OctoPrint-FilamentManager/releases/latest/download/master.zip
https://github.com/jneilliii/OctoPrint-PrusaSlicerThumbnails/archive/master.zip
https://github.com/thijsbekke/OctoPrint-Pushover/archive/master.zip
https://github.com/jneilliii/OctoPrint-TabOrder/archive/master.zip
https://github.com/1r0b1n0/OctoPrint-Tempsgraph/archive/master.zip
https://github.com/jneilliii/OctoPrint-TerminalCommandsExtended/archive/master.zip
https://github.com/birkbjo/OctoPrint-Themeify/archive/master.zip
https://github.com/BillyBlaze/OctoPrint-TouchUI/archive/master.zip