mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
14 lines
261 B
Docker
14 lines
261 B
Docker
FROM node:carbon as builder
|
|
ENV NODE_ENV=PRODUCTION
|
|
WORKDIR /app
|
|
COPY package.json ./
|
|
RUN npm install --production
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM node:8-alpine
|
|
RUN npm -g install serve
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /app/build .
|
|
CMD ["serve", "-p", "8080"] |