mirror of
https://github.com/chirpstack/chirpstack.git
synced 2024-12-19 21:27:55 +00:00
api: add --depth=1
to googleapis and protobuf clones (#420)
This commit is contained in:
parent
40cfa3ddf2
commit
26832f3a5f
2
api/Dockerfile-csharp
vendored
2
api/Dockerfile-csharp
vendored
@ -3,7 +3,7 @@ FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
|
||||
ENV PROJECT_PATH=/chirpstack/api
|
||||
|
||||
RUN apt update && apt install -y make git
|
||||
RUN git clone --depth=1 --branch=master https://github.com/googleapis/googleapis.git /googleapis
|
||||
RUN git clone --depth=1 https://github.com/googleapis/googleapis.git /googleapis
|
||||
RUN mkdir -p /googleproto/google/api/
|
||||
RUN mv /googleapis/google/api/http.proto /googleproto/google/api/ && mv /googleapis/google/api/annotations.proto /googleproto/google/api/
|
||||
RUN rm -rf /googleapis
|
||||
|
2
api/Dockerfile-md
vendored
2
api/Dockerfile-md
vendored
@ -3,7 +3,7 @@ FROM golang:1.19.3-alpine
|
||||
ENV PROJECT_PATH=/chirpstack/api
|
||||
RUN apk add --no-cache make git bash protobuf protobuf-dev
|
||||
|
||||
RUN git clone https://github.com/googleapis/googleapis.git /googleapis
|
||||
RUN git clone --depth=1 https://github.com/googleapis/googleapis.git /googleapis
|
||||
|
||||
RUN mkdir -p $PROJECT_PATH
|
||||
WORKDIR $PROJECT_PATH
|
||||
|
4
api/Dockerfile-python
vendored
4
api/Dockerfile-python
vendored
@ -2,8 +2,8 @@ FROM python:3.11.0
|
||||
|
||||
ENV PROJECT_PATH=/chirpstack/api
|
||||
|
||||
RUN git clone https://github.com/protocolbuffers/protobuf.git /protobuf
|
||||
RUN git clone https://github.com/googleapis/googleapis.git /googleapis
|
||||
RUN git clone --depth=1 https://github.com/protocolbuffers/protobuf.git /protobuf
|
||||
RUN git clone --depth=1 https://github.com/googleapis/googleapis.git /googleapis
|
||||
|
||||
RUN mkdir -p PROJECT_PATH
|
||||
WORKDIR $PROJECT_PATH
|
||||
|
Loading…
Reference in New Issue
Block a user