add build logic for new ui

This commit is contained in:
wodka 2019-09-10 23:36:35 +02:00
parent 6641455ef2
commit 10d6492949

14
ui/Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM node:10 AS builder
MAINTAINER OhMyForm <admin@ohmyform.com>
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