add basic docker file

This commit is contained in:
Sasha 2023-11-01 02:39:46 +01:00
parent 1fef2bd7d8
commit d9c13dd6a1
No known key found for this signature in database
2 changed files with 16 additions and 1 deletions

8
Dockerfile Normal file
View File

@ -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"]

View File

@ -22,4 +22,11 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the
```bash
npm run build
npm run serve
```
```
## To run in docker
```bash
docker build -t waku_frontend .
docker run -d -p 3000:3000 -p waku_frontend
```