2017-06-28 15:59:22 +05:30
|
|
|
FROM golang:1.9-alpine
|
2016-10-11 20:50:17 +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-08-15 03:14:27 +05:30
|
|
|
COPY ./Gopkg.* /go/src/app/
|
|
|
|
COPY ./main.go /go/src/app/
|
2017-08-16 17:53:03 +05:30
|
|
|
COPY ./bootstrap /go/src/app/bootstrap
|
2017-08-15 03:14:27 +05:30
|
|
|
COPY ./cmd /go/src/app/cmd
|
|
|
|
COPY ./daemon /go/src/app/daemon
|
|
|
|
COPY ./db /go/src/app/db
|
|
|
|
COPY ./model /go/src/app/model
|
|
|
|
COPY ./repositories /go/src/app/repositories
|
|
|
|
COPY ./ui /go/src/app/ui
|
|
|
|
COPY ./utils /go/src/app/utils
|
|
|
|
|
|
|
|
RUN apk add --no-cache git \
|
|
|
|
&& go get -u github.com/golang/dep/cmd/dep \
|
|
|
|
&& dep ensure \
|
|
|
|
&& go clean -i github.com/golang/dep \
|
|
|
|
&& rm -rf $GOPATH/src/github.com/golang/dep \
|
|
|
|
&& apk del git \
|
|
|
|
&& go build main.go \
|
|
|
|
&& mv main /usr/local/bin/minecraft-skinsystem
|
2016-07-04 02:50:41 +05:30
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
2017-08-15 03:14:27 +05:30
|
|
|
ENTRYPOINT ["minecraft-skinsystem"]
|
|
|
|
CMD ["serve"]
|