Hi all, I looked for some keywords in the history ...
# talk-hydra
t
Hi all, I looked for some keywords in the history but I didn't find my answer. I need some customisation on top of hydra docker image. The base image that I am using is
oryd/hydra:v1.10.7
On top of it I add some config files and install netcat on top of it for a custom startup script. Whenever I am executing any command by
RUN
in my dockerfile, I am getting an error when building the docker image -
executor failed running [/bin/sh -c apk add netcat-openbsd]: unable to find user 1000: invalid argument
Any help is appreciated, thank you!
This happens on any kind of RUN command on this image. My guess is, it is trying to run the command with the user id 1000 mentioned in this dockerfile(I might be wrong), but if it is, then how is it that the user is not present in the docker image itself 🤔
e
the default docker image is a multistage build with the last stage using scratch as the base. To get access to
apk
you can extend from
oryd/hydra:v1.10.7-alpine
instead.
the user is still an issue
you’ll need to switch to the root user to run install anything
Copy code
FROM oryd/hydra:v1.10.7-alpine

USER root

RUN apk add netcat-openbsd
t
Thanks Daniel 🙌