From 17c49ae6160c06790c9e903c7535c215efda663c Mon Sep 17 00:00:00 2001 From: "hanyu363@qq.com" Date: Thu, 20 Apr 2017 17:18:32 +0800 Subject: [PATCH] =?UTF-8?q?[new]=20=E6=B7=BB=E5=8A=A0=E4=BA=86dockerfile,?= =?UTF-8?q?=E5=B8=AE=E5=8A=A9=E5=8F=AF=E4=BB=A5=E6=89=93skynet=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E9=95=9C=E5=83=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..2b7c95669 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,29 @@ +FROM alpine:latest + +MAINTAINER weihua(hanyu363@qq.com) + +COPY repositories /etc/apk/repositories +RUN apk update + +RUN apk add --no-cache --virtual .build-deps \ + git \ + make \ + autoconf \ + gcc \ + g++ \ + readline \ + readline-dev \ + && git clone https://github.com/cloudwu/skynet.git \ + && cd skynet && make linux \ + && rm -rf 3rd HISTORY.md LICENSE Makefile README.md lualib-src platform.mk service-src skynet-src test .git \ + && apk del .build-deps + + +ENV SKYNET_ROOT /skynet +ENV PATH $SKYNET_ROOT:$PATH + +WORKDIR /skynet + +ENTRYPOINT ["skynet"] + +CMD ["example/config"]