Yeah but how to I run dgraph at the same time??? I can’t run the dgraph and have it do the alter at the same time, that’s the problem. I need to find a way to alter the schema without running the dgraph or run it it the background in dockerfile.
dockerfile should look something like this:
FROM dgraph
ADD ./Schema ./
RUN #(here dgraph should run in background)
RUN curl "localhost:8080/alter" --silent --request POST /
--data-binary "@path/to/Schema"