2024-11-25 23:46:00 +03:00
|
|
|
FROM alpine:3.20
|
2023-05-03 12:02:40 +03:00
|
|
|
|
|
|
|
ARG VERSION
|
|
|
|
ARG TARGETOS
|
|
|
|
ARG TARGETARCH
|
|
|
|
|
2018-11-30 22:06:08 +03:00
|
|
|
RUN apk add --no-cache ca-certificates
|
2016-10-20 17:08:38 +03:00
|
|
|
|
2023-05-03 12:02:40 +03:00
|
|
|
ADD packages/tile38-$VERSION-$TARGETOS-$TARGETARCH/tile38-server /usr/local/bin
|
|
|
|
ADD packages/tile38-$VERSION-$TARGETOS-$TARGETARCH/tile38-cli /usr/local/bin
|
|
|
|
ADD packages/tile38-$VERSION-$TARGETOS-$TARGETARCH/tile38-benchmark /usr/local/bin
|
2016-10-20 17:08:38 +03:00
|
|
|
|
2018-04-24 09:39:29 +03:00
|
|
|
RUN addgroup -S tile38 && \
|
|
|
|
adduser -S -G tile38 tile38 && \
|
|
|
|
mkdir /data && chown tile38:tile38 /data
|
2016-10-20 17:08:38 +03:00
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
|
|
|
|
EXPOSE 9851
|
2018-04-24 09:39:29 +03:00
|
|
|
CMD ["tile38-server", "-d", "/data"]
|