2024-04-09 10:51:05 +00:00
|
|
|
FROM node:alpine
|
|
|
|
|
|
|
|
ARG NEXT_PUBLIC_WS_URL
|
|
|
|
ARG NEXT_PUBLIC_API_URL
|
2024-05-12 06:44:52 +00:00
|
|
|
ARG PORT
|
|
|
|
|
2024-04-09 10:51:05 +00:00
|
|
|
ENV NEXT_PUBLIC_WS_URL=${NEXT_PUBLIC_WS_URL}
|
|
|
|
ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
|
2024-05-12 06:44:52 +00:00
|
|
|
ENV PORT=${PORT}
|
2024-04-09 10:51:05 +00:00
|
|
|
|
|
|
|
WORKDIR /home/perplexica
|
|
|
|
|
|
|
|
COPY ui /home/perplexica/
|
|
|
|
|
|
|
|
RUN yarn install
|
|
|
|
RUN yarn build
|
|
|
|
|
|
|
|
CMD ["yarn", "start"]
|