It seems like I have confused everybody. I can simplify.
Basically I need help with the dockerfile.
I have one file: A schema file: That defines the types.
# QUERY TYPE: ALTER
# Define Types
type Store {
store !
class
geolocation
}
type Product {
product !
stores
}
# Define Directives and index
store: String @index(trigram) .
product: String @index(term,fulltext) .
class: uid .
stores: [uid] @reverse .
geolocation: geo .
Thanks for the advice @MichelDiz could anyone help me with the dockerfile?
FROM dgraph
ADD ./Schema ./
# How to add the Schema????
RUN curl -X POST localhost:8080/alter < ./Schema