feat(docker-compose): implement data volume
This commit is contained in:
parent
c51ec8ff0f
commit
799f4d6aee
4 changed files with 17 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM node:buster-slim
|
||||
FROM nikolaik/python-nodejs:python3.12-nodejs20-bullseye
|
||||
|
||||
ARG SEARXNG_API_URL
|
||||
|
||||
|
@ -7,11 +7,14 @@ 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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue