perplexica/app.dockerfile

18 lines
292 B
Docker

FROM node:alpine
ARG NEXT_PUBLIC_WS_URL
ARG NEXT_PUBLIC_API_URL
ARG PORT
ENV NEXT_PUBLIC_WS_URL=${NEXT_PUBLIC_WS_URL}
ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
ENV PORT=${PORT}
WORKDIR /home/perplexica
COPY ui /home/perplexica/
RUN yarn install
RUN yarn build
CMD ["yarn", "start"]