Use user in container instead of root
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is failing

This commit is contained in:
nemunaire 2022-09-10 13:51:51 +02:00
parent f5ced6a851
commit 14b4bafa25
2 changed files with 8 additions and 1 deletions

View File

@ -62,8 +62,14 @@ workspace:
path: /work
steps:
- name: apply permissions
image: registry.nemunai.re/atsebay.t-worker
commands:
- chown 1000:1000 /work
- name: extract submission
image: registry.nemunai.re/atsebay.t-worker
user: 1000
environment:
SSH_PRIVATE_KEY:
from_secret: SSH_PRIVATE_KEY

View File

@ -1,3 +1,4 @@
FROM alpine:3.16
RUN apk add --no-cache gawk git gnupg tar openssh-client-default xz
RUN apk add --no-cache gawk git gnupg tar openssh-client-default xz && \
adduser -h /work -D -u 1000 drone