tile38/docker/Dockerfile

26 lines
763 B
Docker
Raw Normal View History

2016-10-20 17:08:38 +03:00
FROM alpine:3.4
2018-03-16 19:32:04 +03:00
ENV TILE38_VERSION 1.11.1
2016-10-20 17:08:38 +03:00
ENV TILE38_DOWNLOAD_URL https://github.com/tidwall/tile38/releases/download/$TILE38_VERSION/tile38-$TILE38_VERSION-linux-amd64.tar.gz
RUN addgroup -S tile38 && adduser -S -G tile38 tile38
RUN apk update \
&& apk add ca-certificates \
&& update-ca-certificates \
&& apk add openssl \
&& wget -O tile38.tar.gz "$TILE38_DOWNLOAD_URL" \
&& tar -xzvf tile38.tar.gz \
&& rm -f tile38.tar.gz \
&& mv tile38-$TILE38_VERSION-linux-amd64/tile38-server /usr/local/bin \
&& mv tile38-$TILE38_VERSION-linux-amd64/tile38-cli /usr/local/bin \
2016-10-20 17:08:38 +03:00
&& rm -fR tile38-$TILE38_VERSION-linux-amd64
RUN mkdir /data && chown tile38:tile38 /data
VOLUME /data
WORKDIR /data
EXPOSE 9851
2016-10-20 17:09:27 +03:00
CMD ["tile38-server"]