mirror of
https://github.com/elyby/chrly.git
synced 2024-12-23 13:40:11 +05:30
Исправлен Dockerfile
This commit is contained in:
parent
359aef4b40
commit
4945b3f984
35
Dockerfile
35
Dockerfile
@ -1,28 +1,31 @@
|
|||||||
FROM golang:1.9-alpine
|
FROM golang:1.9-alpine
|
||||||
|
|
||||||
RUN apk add --no-cache git
|
|
||||||
RUN apk add --no-cache git curl \
|
|
||||||
&& curl https://glide.sh/get | sh \
|
|
||||||
&& apk del curl
|
|
||||||
|
|
||||||
RUN mkdir -p /go/src/elyby/minecraft-skinsystem \
|
RUN mkdir -p /go/src/elyby/minecraft-skinsystem \
|
||||||
/go/src/elyby/minecraft-skinsystem/data/capes \
|
/go/src/elyby/minecraft-skinsystem/data/capes \
|
||||||
&& ln -s /go/src/elyby/minecraft-skinsystem /go/src/app
|
&& ln -s /go/src/elyby/minecraft-skinsystem /go/src/app
|
||||||
|
|
||||||
WORKDIR /go/src/app
|
WORKDIR /go/src/app
|
||||||
|
|
||||||
COPY ./glide.* /go/src/app/
|
COPY ./Gopkg.* /go/src/app/
|
||||||
|
COPY ./main.go /go/src/app/
|
||||||
|
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 glide install
|
RUN apk add --no-cache git \
|
||||||
|
&& go get -u github.com/golang/dep/cmd/dep \
|
||||||
COPY ./minecraft-skinsystem.go /go/src/app/
|
&& dep ensure \
|
||||||
COPY ./lib /go/src/app/lib
|
&& go clean -i github.com/golang/dep \
|
||||||
|
&& rm -rf $GOPATH/src/github.com/golang/dep \
|
||||||
RUN go build minecraft-skinsystem.go \
|
&& apk del git \
|
||||||
&& mv minecraft-skinsystem /usr/local/bin/
|
&& go build main.go \
|
||||||
|
&& mv main /usr/local/bin/minecraft-skinsystem
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
VOLUME ["/go/src/app"]
|
ENTRYPOINT ["minecraft-skinsystem"]
|
||||||
|
CMD ["serve"]
|
||||||
CMD ["minecraft-skinsystem"]
|
|
||||||
|
Loading…
Reference in New Issue
Block a user