From 831d74fb6f4112ffa8e206c53081ce4068793111 Mon Sep 17 00:00:00 2001
From: crazywoola
Date: Thu, 11 May 2023 10:17:24 +0800
Subject: [PATCH 1/2] feat: add dockerfile
---
Dockerfile | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 Dockerfile
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..de34e1d
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,12 @@
+FROM --platform=linux/amd64 node:19-bullseye-slim
+
+WORKDIR /app
+
+COPY . .
+
+RUN yarn install
+RUN yarn build
+
+EXPOSE 3000
+
+CMD ["yarn","start"]
From 20760df54ebd95e29c6f4fe20cb2cdd72a128d8d Mon Sep 17 00:00:00 2001
From: crazywoola
Date: Thu, 11 May 2023 10:26:04 +0800
Subject: [PATCH 2/2] feat: update README
---
README.md | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index e03766c..896c863 100644
--- a/README.md
+++ b/README.md
@@ -40,16 +40,16 @@ yarn dev
pnpm dev
```
+## Using Docker
+
+```
+docker build . -t /webapp-conversation:latest
+# now you can access it in port 3000
+docker run -p 3000:3000 /webapp-conversation:latest
+```
+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
-You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
-
-[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.
-
-The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
-
-This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
-
## Learn More
To learn more about Next.js, take a look at the following resources: