Perplexica/app.dockerfile

17 lines
348 B
Text
Raw Normal View History

FROM node:alpine as builder
2024-04-09 16:21:05 +05:30
ARG NEXT_PUBLIC_WS_URL
ARG NEXT_PUBLIC_API_URL
ENV NEXT_PUBLIC_WS_URL=${NEXT_PUBLIC_WS_URL}
ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
WORKDIR /home/perplexica
COPY ui /home/perplexica/
RUN yarn install
RUN yarn build
FROM nginx:stable-alpine-slim
COPY --from=builder /home/perplexica/out /usr/share/nginx/html