forked from hasura/graphql-engine
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (18 loc) · 737 Bytes
/
Dockerfile
File metadata and controls
28 lines (18 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ARG SERVER_IMAGE_TAG
FROM hasura/graphql-engine:${SERVER_IMAGE_TAG}
## Use the following image for ARM
# FROM fedormelexin/graphql-engine-arm64:${SERVER_IMAGE_TAG}
RUN apt-get update && apt-get install -y netcat
# set an env var to let the cli know that
# update notification is disabled
ENV HASURA_GRAPHQL_SHOW_UPDATE_NOTIFICATION=false
COPY docker-entrypoint.sh /bin/
COPY cli-hasura-linux-amd64 /bin/hasura-cli
## Use the following image for ARM
# COPY cli-hasura-linux-arm64 /bin/hasura-cli
RUN chmod +x /bin/hasura-cli
# set an env var to let the cli know that
# it is running in server environment
ENV HASURA_GRAPHQL_CLI_ENVIRONMENT=server-on-docker
ENTRYPOINT ["docker-entrypoint.sh"]
# CMD ["graphql-engine", "serve"]