2016-10-20 17:08:38 +03:00
|
|
|
FROM alpine:3.4
|
|
|
|
|
2016-12-29 21:54:35 +03:00
|
|
|
ENV TILE38_VERSION 1.7.0
|
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 \
|
|
|
|
&& 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"]
|