Fix binary name and root import path.

master
Icedream 2018-06-03 01:04:29 +02:00
parent 6a761c4655
commit fa3004e525
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ FROM golang:1.10 AS builder
RUN mkdir -p /go/src/app RUN mkdir -p /go/src/app
WORKDIR /go/src/app WORKDIR /go/src/app
ARG ROOT_IMPORT_PATH=github.com/icedream/embot ARG ROOT_IMPORT_PATH=git.icedream.tech/icedream/soccer-bot
COPY . /go/src/app COPY . /go/src/app
RUN \ RUN \
mkdir -p "$GOPATH/src/$(dirname "$ROOT_IMPORT_PATH")" &&\ mkdir -p "$GOPATH/src/$(dirname "$ROOT_IMPORT_PATH")" &&\
@ -13,5 +13,5 @@ RUN \
### ###
FROM scratch FROM scratch
COPY --from=builder /soccerbot / COPY --from=builder /soccer-bot /
ENTRYPOINT ["/soccerbot"] ENTRYPOINT ["/soccer-bot"]