forked from treban/docker-smartmeter-vzlogger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (24 loc) · 1.15 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
##################################################################
# DOCKERFILE manualbuild for "vzlogger"
# TARGET: RaspberryPI (ARMv8) with "Strech"
# see installation guide: https://wiki.volkszaehler.org/software/controller/vzlogger/installation_cpp-version
#
# since systemd is not working within docker, a patched install.sh is needed.
##################################################################
# base image
# FROM arm32v7/debian:stable
FROM resin/raspberry-pi-debian:latest
LABEL Description="rpi-vzlogger docker image" Maintainer="[email protected]" Version="0.1"
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -y upgrade
RUN apt-get -y install sudo build-essential git-core cmake pkg-config subversion \
libcurl4-openssl-dev libgnutls28-dev libsasl2-dev uuid-dev \
libtool libssl-dev libgcrypt20-dev libmicrohttpd-dev libltdl-dev \
libjson-c-dev libleptonica-dev libunistring-dev dh-autoreconf
RUN mkdir /cfg && cd /tmp && \
git clone https://github.com/treban/vzlogger.git && \
cd vzlogger && \
bash ./install.sh
####### volume #######
VOLUME ["/cfg"]
CMD /usr/local/bin/vzlogger --config /cfg/vzlogger.conf