fix: fix proto files created as super-user (#13801)
* chore: bump proto-builder * updates * fix root issue Co-authored-by: Marko <marbar3778@yahoo.com>
This commit is contained in:
@@ -2,11 +2,9 @@
|
||||
# docker build --pull --rm -f "contrib/devtools/Dockerfile" -t cosmossdk-proto:latest "contrib/devtools"
|
||||
# docker run --rm -v $(pwd):/workspace --workdir /workspace cosmossdk-proto sh ./scripts/protocgen.sh
|
||||
|
||||
FROM bufbuild/buf:1.7.0 as BUILDER
|
||||
|
||||
FROM bufbuild/buf:1.9.0 as BUILDER
|
||||
FROM golang:1.19-alpine
|
||||
|
||||
|
||||
RUN apk add --no-cache \
|
||||
nodejs \
|
||||
npm \
|
||||
@@ -14,6 +12,13 @@ RUN apk add --no-cache \
|
||||
make \
|
||||
clang-extra-tools
|
||||
|
||||
RUN npm install -g swagger-combine
|
||||
|
||||
ARG UNAME=protobuild
|
||||
ARG UID=1000
|
||||
RUN adduser -u $UID -s /bin/sh $UNAME -D
|
||||
USER $UNAME
|
||||
|
||||
ENV GOLANG_PROTOBUF_VERSION=1.28.1 \
|
||||
GRPC_GATEWAY_VERSION=1.16.0
|
||||
|
||||
@@ -28,6 +33,4 @@ RUN git clone https://github.com/cosmos/gogoproto.git; \
|
||||
go mod download; \
|
||||
make install
|
||||
|
||||
RUN npm install -g swagger-combine
|
||||
|
||||
COPY --from=BUILDER /usr/local/bin /usr/local/bin
|
||||
COPY --from=BUILDER /usr/local/bin /usr/local/bin
|
||||
Reference in New Issue
Block a user