|
1 | 1 | # syntax=docker/dockerfile:1.6.0
|
2 | 2 | FROM alpine:3.18
|
| 3 | +SHELL ["/bin/ash", "-eo", "pipefail", "-c"] |
3 | 4 |
|
4 | 5 | ARG TARGETOS=linux
|
5 | 6 | ARG TARGETARCH
|
@@ -45,22 +46,22 @@ RUN arch="$(uname -m)" && \
|
45 | 46 |
|
46 | 47 | # Download googleapis proto
|
47 | 48 | RUN mkdir -p "${PROTO_DEPS_DIR}" && \
|
48 |
| - curl -L https://github.com/googleapis/googleapis/archive/${GOOGLEAPIS_VERSION}.tar.gz | \ |
49 |
| - tar -xz -C "${PROTO_DEPS_DIR}" && \ |
50 |
| - mv "${PROTO_DEPS_DIR}/googleapis-${GOOGLEAPIS_VERSION}" "${PROTO_DEPS_DIR}/googleapis" |
| 49 | + curl -L https://github.com/googleapis/googleapis/archive/${GOOGLEAPIS_VERSION}.tar.gz | \ |
| 50 | + tar -xz -C "${PROTO_DEPS_DIR}" && \ |
| 51 | + mv "${PROTO_DEPS_DIR}/googleapis-${GOOGLEAPIS_VERSION}" "${PROTO_DEPS_DIR}/googleapis" |
51 | 52 |
|
52 | 53 |
|
53 | 54 | # Download protoc-gen-validate proto
|
54 | 55 | RUN mkdir -p "${PROTO_DEPS_DIR}" && \
|
55 |
| - curl -L https://github.com/bufbuild/protoc-gen-validate/archive/${PROTO_GEN_VALIDATE_VERSION}.tar.gz | \ |
56 |
| - tar -xz -C "${PROTO_DEPS_DIR}" && \ |
57 |
| - mv "${PROTO_DEPS_DIR}/protoc-gen-validate-${PROTO_GEN_VALIDATE_VERSION}" "${PROTO_DEPS_DIR}/protoc-gen-validate" |
| 56 | + curl -L https://github.com/bufbuild/protoc-gen-validate/archive/${PROTO_GEN_VALIDATE_VERSION}.tar.gz | \ |
| 57 | + tar -xz -C "${PROTO_DEPS_DIR}" && \ |
| 58 | + mv "${PROTO_DEPS_DIR}/protoc-gen-validate-${PROTO_GEN_VALIDATE_VERSION}" "${PROTO_DEPS_DIR}/protoc-gen-validate" |
58 | 59 |
|
59 | 60 | # Download grpc-gateway
|
60 | 61 | RUN mkdir -p "${PROTO_DEPS_DIR}" && \
|
61 |
| - curl -L https://github.com/grpc-ecosystem/grpc-gateway/archive/${GRPC_GATEWAY_VERSION}.tar.gz | \ |
62 |
| - tar -xz -C "${PROTO_DEPS_DIR}" && \ |
63 |
| - mv "${PROTO_DEPS_DIR}/grpc-gateway-${GRPC_GATEWAY_VERSION}" "${PROTO_DEPS_DIR}/grpc-gateway" |
| 62 | + curl -L https://github.com/grpc-ecosystem/grpc-gateway/archive/${GRPC_GATEWAY_VERSION}.tar.gz | \ |
| 63 | + tar -xz -C "${PROTO_DEPS_DIR}" && \ |
| 64 | + mv "${PROTO_DEPS_DIR}/grpc-gateway-${GRPC_GATEWAY_VERSION}" "${PROTO_DEPS_DIR}/grpc-gateway" |
64 | 65 |
|
65 | 66 | RUN git clone https://github.com/seamia/protodot.git /protodot
|
66 | 67 | RUN go build -C /protodot -o /usr/local/bin/protodot .
|
|
0 commit comments