Skip to content

Commit

Permalink
Disable CGO
Browse files Browse the repository at this point in the history
  • Loading branch information
GGP1 committed Aug 6, 2022
1 parent 58e688b commit 83cea00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ RUN apk add --update --no-cache git

COPY . .

RUN go install -ldflags="-s -w" .
RUN CGO_ENABLED=0 go install -ldflags="-s -w" .

# ---------------------------------------------

FROM alpine:3.15
FROM alpine:3.16

RUN apk add --update --no-cache vim

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.secure
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ RUN apk add --update --no-cache git

COPY . .

RUN go install -ldflags="-s -w" .
RUN CGO_ENABLED=0 go install -ldflags="-s -w" .

# ---------------------------------------------

FROM alpine:3.15
FROM alpine:3.16

ENV USER=gandalf
ENV UID=10001
Expand Down

0 comments on commit 83cea00

Please sign in to comment.