mirror of https://github.com/rancher/webhook.git
15 lines
298 B
Docker
15 lines
298 B
Docker
FROM registry.suse.com/bci/bci-micro:15.7
|
|
|
|
ARG user=webhook
|
|
|
|
RUN echo "$user:x:1000:1000::/home/$user:/bin/bash" >> /etc/passwd && \
|
|
echo "$user:x:1000:" >> /etc/group && \
|
|
mkdir /home/$user && \
|
|
chown -R $user:$user /home/$user
|
|
|
|
COPY bin/webhook /usr/bin/
|
|
|
|
USER $user
|
|
|
|
CMD ["webhook"]
|