-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdockerfile
More file actions
34 lines (24 loc) · 850 Bytes
/
Copy pathdockerfile
File metadata and controls
34 lines (24 loc) · 850 Bytes
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
FROM ubuntu:xenial AS telldus
LABEL version="2.2"
LABEL description="Containerised telldus daemon. Answers on mqtt"
LABEL maintainer="tobias.jansson@gmail.com"
RUN apt-get update && apt-get upgrade -y ; \
apt-get install curl gnupg unzip dos2unix -y
# Add public key for telldus
RUN curl http://download.telldus.com/debian/telldus-public.key | apt-key add -
# Add source
RUN echo "deb http://download.telldus.com/debian/ stable main" >> /etc/apt/sources.list
RUN apt-get update ; \
apt-get install -y --no-install-recommends \
libftdi1 \
libtelldus-core2 \
telldus-core
# Install deno runtime
RUN curl -fsSL https://deno.land/x/install/install.sh | sh
EXPOSE 1993
WORKDIR /app
COPY start.sh src/. ./
RUN /root/.deno/bin/deno cache main.ts
RUN chmod +x start.sh && \
dos2unix start.sh
ENTRYPOINT ["./start.sh"]