feat: build docker images in CI

This commit is contained in:
Nick the Sick 2024-06-29 22:50:12 +02:00
parent c0b3a409dd
commit 5979f8321d
No known key found for this signature in database
GPG key ID: F575992F156E5BCC
6 changed files with 153 additions and 7 deletions

View file

@ -1,18 +1,16 @@
FROM node:slim
ARG SEARXNG_API_URL
ENV SEARXNG_API_URL=${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