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