mirror of
https://github.com/luzifer-docker/kyototycoon.git
synced 2024-12-20 11:51:17 +00:00
20 lines
644 B
Docker
20 lines
644 B
Docker
FROM alpine
|
|
|
|
LABEL maintainer Knut Ahlers <knut@ahlers.me>
|
|
ENV VERSION=9a8fb5c
|
|
|
|
RUN set -ex \
|
|
&& apk --no-cache add zlib-dev lzo-dev lua5.1-dev libstdc++ \
|
|
&& apk --no-cache add --virtual build-deps git build-base \
|
|
&& git clone https://github.com/carlosefr/kyoto.git /tmp/build \
|
|
&& cd /tmp/build && git reset --hard ${VERSION} && make PREFIX=/usr && make install \
|
|
&& rm -rf /tmp/build \
|
|
&& apk del build-deps
|
|
|
|
VOLUME /data
|
|
EXPOSE 3000
|
|
|
|
ENTRYPOINT ["ktserver"]
|
|
CMD ["-ls", "-th", "16", "-port", "3000", "-pid", "/data/kyoto.pid", \
|
|
"-oat", "-asi", "10", "-ash", "-sid", "1001", \
|
|
"/data/db/db.kct#opts=c#pccap=256m#dfunit=8"]
|