Parcourir la source

use vendor/, if found

boyska il y a 5 ans
Parent
commit
84be6af736
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      Dockerfile

+ 4 - 4
Dockerfile

@@ -1,11 +1,11 @@
 FROM golang:1.11-alpine as builder
 RUN apk --no-cache add git gcc musl-dev
-WORKDIR /panel/
-COPY ./ /panel/
-RUN rm -rf /panel/vendor/ && go get ./... && CGO_ENABLED=0 GOOS=linux go install -v ./...
+WORKDIR /go/src/git.lattuga.net/boyska/feedpanel/
+COPY ./ /go/src/git.lattuga.net/boyska/feedpanel/
+RUN go build -v ./cmd/...
 
 FROM scratch
 WORKDIR /usr/bin/
 COPY --from=builder /go/bin/panelcli /usr/bin/
 COPY --from=builder /go/bin/userpanel /usr/bin/
-ENTRYPOINT ["./userpanel"]  
+ENTRYPOINT ["./userpanel"]