-
Notifications
You must be signed in to change notification settings - Fork 38
/
Dockerfile
29 lines (22 loc) · 1.15 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM python:3.7
# Installing ffmpeg is needed for working with timelapses - can be ommitted otherwise
# Also install vim for later edit based debugging
RUN apt-get update && apt-get -y install --no-install-recommends ffmpeg vim && rm -rf /var/lib/apt/lists/*
# IPFS installation for LAN filesharing
RUN wget https://dist.ipfs.tech/kubo/v0.15.0/kubo_v0.15.0_linux-amd64.tar.gz \
&& tar -xvzf kubo_v0.15.0_linux-amd64.tar.gz \
&& cd kubo \
&& bash -c ". ./install.sh" \
&& ipfs --version
RUN adduser oprint
USER oprint
SHELL ["/bin/bash", "-c"]
RUN python -m pip install virtualenv && cd ~ \
&& git clone https://github.com/OctoPrint/OctoPrint && cd OctoPrint \
&& python -m virtualenv venv && source ./venv/bin/activate && python -m pip install -e .[develop,plugins] \
&& echo "source ~/OctoPrint/venv/bin/activate" >> ~/.bashrc \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash \
&& . ~/.nvm/nvm.sh && nvm install v17 && nvm alias default v17 && nvm use default
ADD . /home/oprint/continuousprint
RUN cd ~/continuousprint && source ~/OctoPrint/venv/bin/activate && octoprint dev plugin:install
CMD octoprint serve