From cba52ca1ce0cac67b59ae728c1d1ec579507667d Mon Sep 17 00:00:00 2001 From: Luke Gordon Date: Thu, 20 Oct 2016 09:08:38 -0500 Subject: [PATCH] Adding Dockerfile for official builds --- Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..ebd3336c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM alpine:3.4 + +ENV TILE38_VERSION 1.5.1 +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 +CMD ["tile38-server"] \ No newline at end of file