forked from nhost/hasura-backend-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.dev
29 lines (21 loc) · 986 Bytes
/
Dockerfile.dev
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
29
FROM node:14.4.0-alpine3.11
# glibc is required by `cli_ext` used to apply metadata
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.31-r0/glibc-2.31-r0.apk
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.31-r0/glibc-bin-2.31-r0.apk
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.31-r0/glibc-i18n-2.31-r0.apk
RUN apk add glibc-2.31-r0.apk glibc-bin-2.31-r0.apk glibc-i18n-2.31-r0.apk
RUN /usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8
RUN apk add --no-cache libstdc++
# install Hasura Cli
RUN apk add curl
RUN curl -L https://github.com/hasura/graphql-engine/raw/stable/cli/get.sh | sh
ARG NODE_ENV=development
ENV NODE_ENV $NODE_ENV
ENV PORT 3000
ENV PGOPTIONS "-c search_path=auth"
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install
COPY . .
CMD ["yarn", "run", "dev-command"]