mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2024-09-11 03:55:33 +03:00
18 lines
388 B
Docker
18 lines
388 B
Docker
FROM node:alpine
|
|
|
|
ARG SEARXNG_API_URL
|
|
|
|
WORKDIR /home/perplexica
|
|
|
|
COPY src /home/perplexica/src
|
|
COPY tsconfig.json /home/perplexica/
|
|
COPY config.toml /home/perplexica/
|
|
COPY package.json /home/perplexica/
|
|
COPY yarn.lock /home/perplexica/
|
|
|
|
RUN sed -i "s|SEARXNG = \".*\"|SEARXNG = \"${SEARXNG_API_URL}\"|g" /home/perplexica/config.toml
|
|
|
|
RUN yarn install
|
|
RUN yarn build
|
|
|
|
CMD ["yarn", "start"] |