Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: docker #21

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:20.18.1
WORKDIR /voice-assistant-frontend
COPY . .
RUN npm install -g pnpm && \
pnpm install
EXPOSE 3000
CMD ["pnpm","dev"]
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,17 @@ pnpm dev
```

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

## Quickstart for docker

- Copy and rename `.env.example` to `.env.local`, then add the required environment variables to connect to your LiveKit server.

> [!TIP]
> If you are using **LiveKit Cloud**, you can find your project environment variables [here](https://cloud.livekit.io/projects/p_/settings/keys).

```shell
docker run -d --name voice-assistant-frontend \
-p 3006:3000 \
-v ${PWD}/.env.local:/voice-assistant-frontend/.env.local \
voice-assistant-frontend:main
```