From 10d6492949a5ac5dc0c7dd85fcab011a0ec7f05d Mon Sep 17 00:00:00 2001 From: wodka Date: Tue, 10 Sep 2019 23:36:35 +0200 Subject: [PATCH] add build logic for new ui --- ui/Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ui/Dockerfile diff --git a/ui/Dockerfile b/ui/Dockerfile new file mode 100644 index 00000000..632b4783 --- /dev/null +++ b/ui/Dockerfile @@ -0,0 +1,14 @@ +FROM node:10 AS builder +MAINTAINER OhMyForm + +WORKDIR /opt/app + +# just copy everhing +COPY . . + +RUN yarn install --frozen-lockfile +RUN yarn build + +FROM nginx + +COPY --from=builder /opt/app/dist /var/share/nginx/html