Files
komodo/frontend/Dockerfile
2024-04-21 23:03:20 -07:00

16 lines
348 B
Docker

FROM node:20.12-alpine
WORKDIR /app
COPY ./frontend ./frontend
COPY ./client/core/ts ./client
ARG VITE_MONITOR_HOST
ENV VITE_MONITOR_HOST ${VITE_MONITOR_HOST}
RUN cd client && yarn && yarn build && yarn link
RUN cd frontend && yarn link @monitor/client && yarn && yarn build
ENV PORT 4174
CMD cd frontend && yarn preview --host --port ${PORT}