Build frontend in dockerfile

This commit is contained in:
Tulir Asokan 2018-11-11 00:52:28 +02:00
parent 5c62bb2671
commit 3d88277fd2
2 changed files with 11 additions and 0 deletions

View file

@ -1,9 +1,15 @@
FROM node:10 AS frontend-builder
COPY ./maubot/management/frontend /frontend
RUN cd /frontend && yarn --prod && yarn build
FROM alpine:3.8
ENV UID=1337 \
GID=1337
COPY . /opt/maubot
COPY --from=frontend-builder /frontend/build /opt/maubot/frontend
WORKDIR /opt/maubot
RUN apk add --no-cache \
py3-aiohttp \