Created
March 29, 2017 17:32
-
-
Save bergera/4838319e40a0c33cdfe8a25598f89d72 to your computer and use it in GitHub Desktop.
[WIP] Dockerfile for Artisan Roaster Scope
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker run -it \ | |
# -v /tmp/.X11-unix:/tmp/.X11-unix \ # mount the X11 socket | |
# -e DISPLAY=unix$DISPLAY \ | |
# --device /dev/snd \ | |
# --device /dev/usb \ | |
# --name artisan \ | |
# . | |
FROM debian:jessie | |
ADD https://github.com/artisan-roaster-scope/artisan/releases/download/v1.0.0/artisan-linux-1.0.0_amd64.deb /src/artisan-linux-1.0.0_amd64.deb | |
ADD http://www.phidgets.com/downloads/libraries/libphidget.tar.gz /src/libphidget.tar # it is not actually gzipped | |
# install dependencies | |
RUN apt-get update && apt-get install -y \ | |
build-essential \ | |
libusb-dev \ | |
--no-install-recommends \ | |
&& tar xf /src/libphidget.tar -C /src/libphidget_2.1.8.20151217 \ | |
&& ./configure && make && make install \ | |
&& dpkg -i '/src/artisan-linux-1.0.0_amd64.deb' | |
&& apt-get purge --auto-remove -y build-essential \ | |
&& rm -rf /src/*.deb \ | |
&& rm -rf /src/*.tar \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN groupadd -r artisan && useradd -r -g artisan -G usb \ | |
&& mkdir /home/artisan && chown -R artisan:artisan /home/artisan | |
USER artisan | |
ENTRYPOINT ["artisan"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment