diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ddeb9d2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM node:18 +WORKDIR /app +COPY package*.json ./ +RUN npm ci +COPY . . +RUN npm run build +EXPOSE 3000 +CMD ["npm", "run", "serve"] diff --git a/README.md b/README.md index 5769874..2145e3e 100644 --- a/README.md +++ b/README.md @@ -22,4 +22,11 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the ```bash npm run build npm run serve -``` \ No newline at end of file +``` + +## To run in docker + +```bash +docker build -t waku_frontend . +docker run -d -p 3000:3000 -p waku_frontend +```