mirror of
https://github.com/mkuf/prind.git
synced 2026-05-07 15:47:12 +02:00
docker: remove unused octoprint image
This commit is contained in:
@@ -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"]
|
||||
@@ -1,5 +0,0 @@
|
||||
# PrusaSlicerThumbnails
|
||||
libopenjp2-7
|
||||
libjpeg62-turbo
|
||||
libtiff5
|
||||
libxcb1
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user