2018-01-06 16:47:15 +00:00
|
|
|
FROM alpine
|
|
|
|
|
|
|
|
LABEL maintainer Knut Ahlers <knut@ahlers.me>
|
|
|
|
ENV VERSION=9a8fb5c
|
2017-05-15 14:25:18 +00:00
|
|
|
|
|
|
|
RUN set -ex \
|
2018-01-06 17:00:19 +00:00
|
|
|
&& apk --no-cache add zlib-dev lzo-dev lua5.1-dev libstdc++ \
|
|
|
|
&& apk --no-cache add --virtual build-deps git build-base \
|
2018-01-06 16:47:15 +00:00
|
|
|
&& git clone https://github.com/carlosefr/kyoto.git /tmp/build \
|
|
|
|
&& cd /tmp/build && git reset --hard ${VERSION} && make PREFIX=/usr && make install \
|
2018-01-06 17:02:58 +00:00
|
|
|
&& rm -rf /tmp/build \
|
2018-01-06 17:00:19 +00:00
|
|
|
&& apk del build-deps
|
2017-05-15 14:25:18 +00:00
|
|
|
|
|
|
|
VOLUME /data
|
|
|
|
EXPOSE 3000
|
|
|
|
|
|
|
|
ENTRYPOINT ["ktserver"]
|
|
|
|
CMD ["-ls", "-th", "16", "-port", "3000", "-pid", "/data/kyoto.pid", \
|
2022-12-27 14:57:41 +00:00
|
|
|
"-oat", "-asi", "10", "-ash", "-sid", "1001", \
|
2017-05-15 14:25:18 +00:00
|
|
|
"/data/db/db.kct#opts=c#pccap=256m#dfunit=8"]
|