mirror of
https://github.com/elyby/chrly.git
synced 2024-11-26 16:51:59 +05:30
e090d04dc7
Перешли на использование менеджера зависимостей glide
29 lines
598 B
Docker
29 lines
598 B
Docker
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 \
|
|
/go/src/elyby/minecraft-skinsystem/data/capes \
|
|
&& ln -s /go/src/elyby/minecraft-skinsystem /go/src/app
|
|
|
|
WORKDIR /go/src/app
|
|
|
|
COPY ./glide.* /go/src/app/
|
|
|
|
RUN glide install
|
|
|
|
COPY ./minecraft-skinsystem.go /go/src/app/
|
|
COPY ./lib /go/src/app/lib
|
|
|
|
RUN go build minecraft-skinsystem.go \
|
|
&& mv minecraft-skinsystem /usr/local/bin/
|
|
|
|
EXPOSE 80
|
|
|
|
VOLUME ["/go/src/app"]
|
|
|
|
CMD ["minecraft-skinsystem"]
|