2016-10-11 18:20:17 +03:00
|
|
|
FROM golang:1.7-alpine
|
|
|
|
|
|
|
|
RUN apk add --no-cache git
|
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
|
|
|
|
|
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
|
|
|
|
|
|
|
RUN go-wrapper download
|
|
|
|
RUN go-wrapper install
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
VOLUME ["/go/src/app"]
|
|
|
|
|
|
|
|
CMD ["go-wrapper", "run"]
|