From 70bbc50e85f89e588a8749f0dda1ed2d622a33cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=82=BB=E7=AC=91zz?= <43721571+shaxiaozz@users.noreply.github.com> Date: Thu, 2 Jan 2025 12:06:05 +0800 Subject: [PATCH 1/2] add: Create Dockerfile --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..e8742fba6 --- /dev/null +++ b/Dockerfile @@ -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"] From f2525477dc21afa10cdc0585669cd7eee9873af3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=82=BB=E7=AC=91zz?= <43721571+shaxiaozz@users.noreply.github.com> Date: Thu, 2 Jan 2025 12:10:24 +0800 Subject: [PATCH 2/2] docs: docker declaration --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 4b776a750..192cd2e1c 100644 --- a/README.md +++ b/README.md @@ -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 +```