-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
33 lines (23 loc) · 867 Bytes
/
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
31
32
33
FROM bitnami/minideb-extras:stretch
LABEL maintainer="Rashad Ansari <[email protected]>"
ARG TILE38_VERSION
RUN curl -L https://github.com/tidwall/tile38/releases/download/${TILE38_VERSION}/tile38-${TILE38_VERSION}-linux-amd64.tar.gz -o tile38-${TILE38_VERSION}-linux-amd64.tar.gz && \
tar xzvf tile38-${TILE38_VERSION}-linux-amd64.tar.gz && \
mv tile38-${TILE38_VERSION}-linux-amd64 tile38 && \
rm -rf tile38-${TILE38_VERSION}-linux-amd64.tar.gz
RUN apt-get update && \
apt-get install wget && \
apt-get --assume-yes install redis-tools
WORKDIR tile38
COPY run.sh run.sh
RUN \
chgrp -R 0 /tile38 && \
chmod -R g=u /tile38
RUN \
touch /.liner_example_history && \
chgrp -R 0 /.liner_example_history && \
chmod -R g=u /.liner_example_history
# VOLUME /tile38/data
EXPOSE 9851
USER tile38
CMD [ "./run.sh" ]