21 lines
502 B
Docker
21 lines
502 B
Docker
FROM nikolaik/python-nodejs:python3.12-nodejs20-bullseye
|
|
|
|
ARG SEARXNG_API_URL
|
|
|
|
WORKDIR /home/perplexica
|
|
|
|
COPY src /home/perplexica/src
|
|
COPY tsconfig.json /home/perplexica/
|
|
COPY config.toml /home/perplexica/
|
|
COPY drizzle.config.ts /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 mkdir /home/perplexica/data
|
|
|
|
RUN yarn install
|
|
RUN yarn build
|
|
|
|
CMD ["yarn", "start"] |