Containerfile (710B)
1 # Run Prusa Slicer in a container 2 # 3 # Based on Jessie Frazelle's post: 4 # https://blog.jessfraz.com/post/docker-containers-on-the-desktop/ 5 FROM debian:latest 6 LABEL maintainer "Brian C. Lane <bcl@brianlane.com>" 7 8 RUN apt-get update && apt-get install -y \ 9 prusa-slicer \ 10 locales \ 11 && rm -rf /var/lib/apt/lists/* 12 13 # Update the locale 14 RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \ 15 && locale-gen en_US.utf8 \ 16 && /usr/sbin/update-locale LANG=en_US.UTF-8 17 18 ENV LC_ALL en_US.UTF-8 19 ENV LANG en_US.UTF-8 20 ENV HOME /home/user 21 ENV USER user 22 23 RUN groupadd -g 1000 user \ 24 && useradd -u 1000 -g 1000 --create-home --home-dir $HOME user \ 25 && chown -R user:user $HOME 26 RUN passwd -d root 27 28 WORKDIR $HOME 29 USER user