Perplexica/app.dockerfile
Andrew Pennington 7d5eec898d
Docker build & push (#2)
* Simple docker build and push
* Removed requirement of defining in the config.toml file, everything should be available from the environment
* Added workflow dispatch
2024-08-15 19:12:31 +01:00

15 lines
No EOL
315 B
Docker

FROM node:alpine
ARG NEXT_PUBLIC_WS_URL='ws://127.0.0.1:3001'
ARG NEXT_PUBLIC_API_URL='http://127.0.0.1:3001/api'
ENV NEXT_PUBLIC_WS_URL=${NEXT_PUBLIC_WS_URL}
ENV NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL}
WORKDIR /home/perplexica
COPY ui /home/perplexica/
RUN yarn install
RUN yarn build
CMD ["yarn", "start"]