diff --git a/Dockerfile b/Dockerfile index a18f127..681cbf8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM golang ADD . /go/src/resenje.org/casbab -RUN CGO_ENABLED=0 go build -ldflags "-s -w" resenje.org/casbab/cmd/casbab +RUN cd /go/src/resenje.org/casbab && CGO_ENABLED=0 go build -ldflags "-s -w" -trimpath ./cmd/casbab FROM scratch -COPY --from=0 /go/casbab /casbab +COPY --from=0 /go/src/resenje.org/casbab/casbab /casbab ENTRYPOINT ["/casbab"]