2016-08-20 10:00:05 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for piknik
|
|
|
|
#
|
|
|
|
|
2021-03-10 10:26:43 +02:00
|
|
|
FROM alpine:3
|
|
|
|
MAINTAINER EasyPi Software Foundation
|
2016-08-20 10:00:05 +02:00
|
|
|
|
2021-03-10 10:26:43 +02:00
|
|
|
ENV PIKNIK_VERSION=0.10.1
|
|
|
|
ENV PIKNIK_FILE=piknik-linux_x86_64-${PIKNIK_VERSION}.tar.gz
|
|
|
|
ENV PIKNIK_URL=https://github.com/jedisct1/piknik/releases/download/${PIKNIK_VERSION}/${PIKNIK_FILE}
|
2016-08-20 10:00:05 +02:00
|
|
|
|
|
|
|
RUN set -xe \
|
|
|
|
&& apk add --no-cache curl libc6-compat tar \
|
|
|
|
&& curl -sSL ${PIKNIK_URL} | tar xz -C /usr/local/bin --strip 1 linux-x86_64/piknik \
|
2021-03-10 10:26:43 +02:00
|
|
|
&& mkdir -p /etc/piknik \
|
2016-08-20 10:00:05 +02:00
|
|
|
&& ln -s /lib /lib64 \
|
|
|
|
&& apk del curl tar
|
|
|
|
|
|
|
|
EXPOSE 8075
|
|
|
|
|
|
|
|
ENTRYPOINT ["piknik"]
|
2021-03-10 10:26:43 +02:00
|
|
|
CMD ["-config", "/etc/piknik/piknik.toml", "-server"]
|