summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
blob: 317f52f1e8d265043b2a19a5ca7bec9f0562bfb6 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM debian:testing

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update && apt-get install -y --no-install-recommends \
    ca-certificates \
    curl \
    wget \
    build-essential \
    valac \
    libesmtp-dev \
    libgpgme11-dev \
    libncursesw5-dev \
    libncurses5-dev \
    libgmime-2.6-dev \
    libarchive-dev \
    libgstreamer1.0-dev \
    rygel-playbin \
    librsvg2-dev \
    libsqlite3-dev \
    libpango1.0-dev \
    libssl-dev \
    meson \
    dbus-x11 \
    fonts-lmodern \
    sqlite3 \
    libgtk2.0-dev \
    libsoup2.4-dev \
    libgee-0.8-dev \
    debhelper \
    dh-sysuser \
    libgmime-3.0-dev \
    udev \
    tmux \
    # neeed for apt install shopsystem
    systemd console-setup console-setup-linux dbconfig-common dbconfig-sqlite3 gstreamer1.0-alsa gstreamer1.0-plugins-base iso-codes kbd keyboard-configuration libasound2 libasound2-data libcdparanoia0 \
    libgstreamer-plugins-base1.0-0 libjs-bootstrap libjs-c3 libjs-d3 libjs-jquery libjs-jquery-datatables libjs-jquery-flot libjs-jquery-mousewheel liblocale-gettext-perl libogg0 libopus0 liborc-0.4-0 \
    libpam-systemd libpolkit-agent-1-0 libpolkit-gobject-1-0 libtheora0 libvisual-0.4-0 libvorbis0a libvorbisenc2 policykit-1 systemd-sysv sysuser-helper xkb-data \
    && rm -rf /var/lib/apt/lists/*

RUN set -ex && \
    useradd shop && \
    mkdir /var/run/dbus

ENV SBC_DIR /mnt/serial-barcode-scanner
WORKDIR $SBC_DIR

COPY tmux-config /root/.tmux.conf
COPY init.sh /root/
COPY config.ini /root/

ENTRYPOINT ["/root/init.sh"]