Commit b9e0da6 2 people authored and committed
1 parent b6553be commit b9e0da6 Copy full SHA for b9e0da6
File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -2,24 +2,21 @@ FROM --platform=$BUILDPLATFORM golang:1.18-alpine as BUILD
2
2
3
3
WORKDIR /relayer
4
4
5
- ARG TARGETARCH
6
- ARG TARGETOS
7
-
8
5
# Update and install needed deps prioir to installing the binary.
9
6
RUN apk update && \
10
- apk --no-cache add make git build-base
7
+ apk --no-cache add make git build-base
11
8
12
9
# Copy go.mod and go.sum first and download for caching go modules
13
- COPY go.mod go.mod
14
- COPY go.sum go.sum
10
+ COPY go.mod go.sum ./
15
11
16
12
RUN go mod download
17
13
18
14
# Copy the files from host
19
15
COPY . .
20
16
21
- RUN export GOOS=${TARGETOS} GOARCH=${TARGETARCH} && \
22
- make install
17
+ ARG TARGETARCH TARGETOS
18
+ ENV GOOS=${TARGETOS} GOARCH=${TARGETARCH}
19
+ RUN make install
23
20
24
21
FROM alpine:latest
25
22
You can’t perform that action at this time.
0 commit comments