Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
fix(build:Docker): disable CGO
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Jul 11, 2022
1 parent 0c5bdf9 commit ac1e38a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ COPY ./go.mod .
RUN go mod download

COPY . .
RUN go build -ldflags "-s -w -X teler.app/common.Version=${VERSION}" \
RUN CGO_ENABLED=0 go build -ldflags \
"-s -w -X teler.app/common.Version=${VERSION}" \
-o ./bin/teler .

FROM alpine:latest

COPY --from=build /app/bin/teler /bin/teler
ENV HOME /

ENTRYPOINT ["/bin/teler"]

0 comments on commit ac1e38a

Please sign in to comment.