ci: fix staticcheck job by adding libc and gcc deps
This commit is contained in:
parent
e7a9ddc460
commit
33cc395882
2 changed files with 4 additions and 1 deletions
|
|
@ -3,10 +3,13 @@ kind: pipeline
|
|||
type: docker
|
||||
name: default
|
||||
|
||||
|
||||
|
||||
steps:
|
||||
- name: staticcheck
|
||||
image: golang:1.18.3-alpine3.16
|
||||
commands:
|
||||
- apk add --no-cache git staticcheck gcc libc-dev
|
||||
- go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||
- staticcheck
|
||||
- name: build
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ ARG uid=1000
|
|||
RUN mkdir -p "$APP_ROOT" \
|
||||
&& addgroup --system sfu -g $gid \
|
||||
&& adduser -h "$APP_ROOT" --disabled-password --system -u $uid --ingroup sfu sfu \
|
||||
&& apk add curl~=7
|
||||
&& apk add --no-cache curl~=7
|
||||
WORKDIR "$APP_ROOT"
|
||||
USER sfu:sfu
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue