fix(docker): non-root user (#186)

This commit is contained in:
Xenxo Espasandín 2024-01-20 16:27:04 +01:00 committed by GitHub
parent 08405c0c90
commit 8b03229a19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,4 +4,7 @@ RUN apk add --no-cache gcompat libstdc++
COPY --chmod=755 ./linux-x64-release/gsc-tool /usr/local/bin/ COPY --chmod=755 ./linux-x64-release/gsc-tool /usr/local/bin/
RUN addgroup -S gsc-tool && adduser -S gsc-tool -G gsc-tool
USER gsc-tool
ENTRYPOINT ["/usr/local/bin/gsc-tool"] ENTRYPOINT ["/usr/local/bin/gsc-tool"]