diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..b8fffe8c --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +.git/ +Dockerfile +*~ +*# +.#* diff --git a/Dockerfile b/Dockerfile index 42c42847..2ac780b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,10 +11,11 @@ RUN GOPROXY=http://goproxy.berty.io:3000/ GO111MODULE=on go get . COPY . . RUN make install - # runtime FROM alpine +WORKDIR /tmp RUN apk add --no-cache ca-certificates COPY --from=builder /go/bin/berty-release /bin/ +COPY --from=builder /go/src/github.com/berty/staff/tools/release/assets /tmp/assets EXPOSE $PORT ENTRYPOINT ["berty-release"] diff --git a/server/handler.go b/server/handler.go index 106eef15..eac97836 100644 --- a/server/handler.go +++ b/server/handler.go @@ -152,7 +152,6 @@ func (s *Server) ListReleaseIOSJson(c echo.Context) error { break } } - } return c.JSON(http.StatusOK, ret) }