Skip to content

Commit

Permalink
fix: docker image build - libc-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
zsnmwy committed Sep 22, 2023
1 parent aec9d91 commit 75f1d7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ on:
- '**.go'
- 'go.*'
- '**.yml'
- 'Dockerfile'
push:
paths:
- 'cmd/**'
- 'pkg/**'
- '**.go'
- 'go.*'
- '**.yml'
- 'Dockerfile'
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ COPY staging staging/
# and so that source changes don't invalidate our downloaded layer
RUN go mod download

RUN apk add gcc
RUN apk add gcc libc-dev

# Build
RUN go build -ldflags="${LDFLAGS}" -a -o ${PKGNAME} /go/src/github.com/gocrane/fadvisor/cmd/${PKGNAME}/main.go
Expand Down

0 comments on commit 75f1d7a

Please sign in to comment.