2024-05-07 14:10:33 +00:00
|
|
|
FROM node:buster-slim
|
2024-04-09 10:51:05 +00:00
|
|
|
|
|
|
|
ARG SEARXNG_API_URL
|
|
|
|
|
|
|
|
WORKDIR /home/perplexica
|
|
|
|
|
|
|
|
COPY src /home/perplexica/src
|
|
|
|
COPY tsconfig.json /home/perplexica/
|
2024-04-20 04:02:19 +00:00
|
|
|
COPY config.toml /home/perplexica/
|
2024-04-09 10:51:05 +00:00
|
|
|
COPY package.json /home/perplexica/
|
|
|
|
COPY yarn.lock /home/perplexica/
|
|
|
|
|
2024-04-20 04:02:19 +00:00
|
|
|
RUN sed -i "s|SEARXNG = \".*\"|SEARXNG = \"${SEARXNG_API_URL}\"|g" /home/perplexica/config.toml
|
|
|
|
|
2024-04-09 10:51:05 +00:00
|
|
|
RUN yarn install
|
|
|
|
RUN yarn build
|
|
|
|
|
|
|
|
CMD ["yarn", "start"]
|