Skip to content

Commit 3a46d21

Browse files
committed
build(docker): fix COPY cmd
Signed-off-by: Dwi Siswanto <me@dw1.io>
1 parent 1dcb8e9 commit 3a46d21

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ LABEL repository="https://github.com/kitabisa/teler-proxy"
99
LABEL maintainer="dwisiswant0"
1010

1111
WORKDIR /app
12-
COPY ["go.mod", "${PGO_FILE}", "."]
12+
COPY ["go.mod", "${PGO_FILE}", "./"]
1313
RUN go mod download
1414

1515
RUN apk add build-base
1616

1717
COPY . .
18-
RUN CGO_ENABLED="1" go build \
19-
-pgo "${PGO_FILE}" -ldflags "${LDFLAGS}" \
20-
-o ./bin/teler-proxy ./cmd/teler-proxy
18+
ENV CGO_ENABLED=1
19+
RUN go build \
20+
-pgo "${PGO_FILE}" \
21+
-ldflags "${LDFLAGS}" \
22+
-o ./bin/teler-proxy \
23+
./cmd/teler-proxy
2124

2225
FROM alpine:latest
2326

0 commit comments

Comments
 (0)