feat(dev): Implement Docker-based dev environment with hot reload and update CONTRIBUTING.md

This commit is contained in:
Abdelrahman mostafa 2024-07-24 00:18:03 +03:00
parent 00a52fc3b1
commit afd7c2943f
6 changed files with 232 additions and 10 deletions

14
app.dev.dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM node:slim
ARG NEXT_PUBLIC_WS_URL
ARG NEXT_PUBLIC_API_URL
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
CMD ["yarn", "dev"]