-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
37 lines (30 loc) · 1 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
31
32
33
34
35
36
37
FROM debian:bullseye-slim
ARG CONFIG=default
ARG TACHIKOMA_UID=1000
RUN apt-get update && \
apt-get install -y \
git build-essential \
libberkeleydb-perl \
libcgi-pm-perl \
libcrypt-openssl-rsa-perl \
libdevice-serialport-perl \
libdbd-sqlite3-perl \
libdbi-perl \
libio-socket-ssl-perl \
libjson-perl \
libnet-ssleay-perl \
libterm-readline-gnu-perl \
libwww-perl \
&& rm -rf /var/lib/apt/lists/*
# vim less procps \
RUN useradd -s /bin/bash -u ${TACHIKOMA_UID} -d /home/tachikoma -m tachikoma \
&& usermod -aG adm tachikoma
WORKDIR /usr/src
RUN git clone https://github.com/datapoke/tachikoma
# NOTE: add your own configs here and use --build-arg CONFIG=local
# COPY ./local/ /usr/src/tachikoma/etc/scripts/local
WORKDIR /usr/src/tachikoma
RUN bin/install_tachikoma \
&& rm -f /home/tachikoma/.tachikoma/run/*
COPY ./docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]