https://www.ory.sh/ logo
#talk-hydra
Title
# talk-hydra
t

thankful-zebra-93759

01/19/2022, 2:45 PM
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

early-dinner-11174

01/19/2022, 3:50 PM
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

thankful-zebra-93759

01/20/2022, 7:35 AM
Thanks Daniel 🙌