2017-06-28 15:59:22 +05:30
|
|
|
FROM golang:1.9-alpine
|
2016-10-11 20:50:17 +05:30
|
|
|
|
|
|
|
RUN apk add --no-cache git
|
2017-06-28 15:59:22 +05:30
|
|
|
RUN apk add --no-cache git curl \
|
|
|
|
&& curl https://glide.sh/get | sh \
|
|
|
|
&& apk del curl
|
2016-07-04 02:50:41 +05:30
|
|
|
|
2016-07-05 03:58:09 +05:30
|
|
|
RUN mkdir -p /go/src/elyby/minecraft-skinsystem \
|
2016-09-22 00:14:52 +05:30
|
|
|
/go/src/elyby/minecraft-skinsystem/data/capes \
|
2016-07-05 03:58:09 +05:30
|
|
|
&& ln -s /go/src/elyby/minecraft-skinsystem /go/src/app
|
|
|
|
|
2016-07-04 02:50:41 +05:30
|
|
|
WORKDIR /go/src/app
|
|
|
|
|
2017-06-28 15:59:22 +05:30
|
|
|
COPY ./glide.* /go/src/app/
|
|
|
|
|
|
|
|
RUN glide install
|
|
|
|
|
2016-07-05 03:58:09 +05:30
|
|
|
COPY ./minecraft-skinsystem.go /go/src/app/
|
|
|
|
COPY ./lib /go/src/app/lib
|
2016-07-04 02:50:41 +05:30
|
|
|
|
2017-06-28 15:59:22 +05:30
|
|
|
RUN go build minecraft-skinsystem.go \
|
|
|
|
&& mv minecraft-skinsystem /usr/local/bin/
|
2016-07-04 02:50:41 +05:30
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
VOLUME ["/go/src/app"]
|
|
|
|
|
2017-06-28 15:59:22 +05:30
|
|
|
CMD ["minecraft-skinsystem"]
|