forked from selinux/PTL-lulzbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (24 loc) · 1.08 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
30
FROM debian:jessie
# Replace 1000 with your user / group id
ENV LULZBOT_CURA_UID 1000
ENV LULZBOT_CURA_GID 1000
RUN apt-get update -y && \
apt-get install -y \
apt-utils \
wget \
sudo
RUN wget -qO - https://download.alephobjects.com/ao/aodeb/aokey.pub | sudo apt-key add -
RUN sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak && \
sudo sed -i '$a deb http://download.alephobjects.com/ao/aodeb jessie main' /etc/apt/sources.list && \
sudo apt-get update -y && \
sudo apt-get install cura-lulzbot -y
RUN export uid=${LULZBOT_CURA_UID} gid=${LULZBOT_CURA_GID} && \
addgroup --gid ${gid} ptl && \
adduser -q -u ${uid} --gid ${gid} --shell /bin/bash --gecos "First Last,RoomNumber,WorkPhone,HomePhone" ptl --disabled-password && \
echo ptl:ptlptl | sudo chpasswd && \
sudo -u ptl mkdir -p -m=00755 "/home/ptl/Documents" "/home/ptl/.cura" "/home/ptl/.local" && \
usermod -a -G tty ptl && \
usermod -a -G dialout ptl
USER ptl
ENV HOME /home/ptl
CMD /usr/bin/cura-lulzbot /home/ptl/Documents