2017-06-28 13:29:22 +03:00
|
|
|
FROM golang:1.9-alpine
|
2016-10-11 18:20:17 +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-08-15 00:44:27 +03:00
|
|
|
COPY ./Gopkg.* /go/src/app/
|
|
|
|
COPY ./main.go /go/src/app/
|
2017-08-16 15:23:03 +03:00
|
|
|
COPY ./bootstrap /go/src/app/bootstrap
|
2017-08-15 00:44:27 +03:00
|
|
|
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 00:20:41 +03:00
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
2017-08-15 00:44:27 +03:00
|
|
|
ENTRYPOINT ["minecraft-skinsystem"]
|
|
|
|
CMD ["serve"]
|