diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4d78ed8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM node:8-alpine AS build +WORKDIR /app +COPY . . +RUN npm install \ + && cd ui-react \ + && npm install \ + && npm run build + +FROM gcr.io/distroless/nodejs +COPY --from=build /app /app +WORKDIR /app +EXPOSE 8080 +CMD ["/app/server.js"]