ci: fix staticcheck job by adding libc and gcc deps
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/pr Build was killed

This commit is contained in:
cătălin 2022-06-28 15:21:22 +02:00
commit 33cc395882
No known key found for this signature in database
GPG key ID: C378F1E869F05A95
2 changed files with 4 additions and 1 deletions

View file

@ -3,10 +3,13 @@ kind: pipeline
type: docker type: docker
name: default name: default
steps: steps:
- name: staticcheck - name: staticcheck
image: golang:1.18.3-alpine3.16 image: golang:1.18.3-alpine3.16
commands: commands:
- apk add --no-cache git staticcheck gcc libc-dev
- go install honnef.co/go/tools/cmd/staticcheck@latest - go install honnef.co/go/tools/cmd/staticcheck@latest
- staticcheck - staticcheck
- name: build - name: build

View file

@ -6,7 +6,7 @@ ARG uid=1000
RUN mkdir -p "$APP_ROOT" \ RUN mkdir -p "$APP_ROOT" \
&& addgroup --system sfu -g $gid \ && addgroup --system sfu -g $gid \
&& adduser -h "$APP_ROOT" --disabled-password --system -u $uid --ingroup sfu sfu \ && 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" WORKDIR "$APP_ROOT"
USER sfu:sfu USER sfu:sfu