Thank you for your help. On Sat, 29 Apr 2023 at 17:57 Konstantin Gribov <[email protected]> wrote:
> To override entrypoint use something like: > > ``` > FROM apache/tika:2.7.0.1-full > ADD tika-config.xml /tika-config.xml > ENTRYPOINT [ "/bin/sh", "-c", "exec java -cp > \"/tika-server-standard-2.7.0.jar:/tika-extras/*\" > org.apache.tika.server.core.TikaServerCli -h 0.0.0.0 --config > /tika-config.xml $0 $@"] > ``` > > After that you could build it with `docker build -t tika-custom:latest .` > and run new with just `docker run -d -p 127.0.0.1:9998:9998 > tika-custom:latest`. > > -- > Best regards, > Konstantin Gribov. > > > On Fri, Apr 28, 2023 at 6:55 PM שי ברק <[email protected]> wrote: > >> I’m really new to Docker. >> How should my Dockerfile look like eventually? >> So far I have these lines: >> ‘’’ >> FROM apache/tika:2.7.0.1-full >> ADD tika-config.xml /tika-config.xml >> ‘’’ >> >> >> On Fri, 28 Apr 2023 at 18:44 Nick Burch <[email protected]> wrote: >> >>> On Fri, 28 Apr 2023, שי ברק wrote: >>> > I don’t know if it’s possible but I’m trying to avoid typing this ‘ –– >>> > config’ when I start the container. I wish to have all of these >>> settings >>> > to be written inside the Dockerfile. >>> >>> Since you're doing your own custom docker container, you could override >>> the ENTRYPOINT to specify the Tika Config file by default >>> https://github.com/apache/tika-docker/blob/master/full/Dockerfile#L77 >>> >>> Nick >> >>
