Dockerfile-devel 434 Bytes
Newer Older
Orne Brocaar's avatar
Orne Brocaar committed
1
FROM golang:1.17-alpine
2

3
ENV PROJECT_PATH=/chirpstack-application-server
4
ENV PATH=$PATH:$PROJECT_PATH/build
Orne Brocaar's avatar
Orne Brocaar committed
5
6
ENV CGO_ENABLED=0
ENV GO_EXTRA_BUILD_ARGS="-a -installsuffix cgo"
7

8
RUN apk add --no-cache ca-certificates make git bash alpine-sdk nodejs npm rpm protobuf
9
10

RUN git clone https://github.com/protocolbuffers/protobuf.git /protobuf
11
12
13
14
15

RUN mkdir -p $PROJECT_PATH
COPY . $PROJECT_PATH
WORKDIR $PROJECT_PATH

16
RUN make dev-requirements