parent
7e6651dea7
commit
5da68bbdd4
|
@ -0,0 +1,4 @@
|
|||
.env
|
||||
.env.local
|
||||
node_modules
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
# ---- Base Node ----
|
||||
FROM node:19-alpine AS base
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
|
||||
# ---- Dependencies ----
|
||||
FROM base AS dependencies
|
||||
RUN npm ci
|
||||
|
||||
# ---- Build ----
|
||||
FROM dependencies AS build
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# ---- Production ----
|
||||
FROM node:19-alpine AS production
|
||||
WORKDIR /app
|
||||
COPY --from=dependencies /app/node_modules ./node_modules
|
||||
COPY --from=build /app/.next ./.next
|
||||
COPY --from=build /app/public ./public
|
||||
COPY --from=build /app/package*.json ./
|
||||
|
||||
# Expose the port the app will run on
|
||||
EXPOSE 3000
|
||||
|
||||
# Start the application
|
||||
CMD ["npm", "start"]
|
|
@ -54,6 +54,14 @@ Host your own live version of Chatbot UI with Vercel.
|
|||
|
||||
Fork Chatbot UI on Replit [here](https://replit.com/@MckayWrigley/chatbot-ui-pro?v=1).
|
||||
|
||||
|
||||
**Docker**
|
||||
|
||||
```shell
|
||||
docker build -t chatgpt-ui .
|
||||
docker run -e OPENAI_API_KEY=xxxxxxxx -p 3000:3000 chatgpt-ui
|
||||
```
|
||||
|
||||
## Running Locally
|
||||
|
||||
**1. Clone Repo**
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
version: '3.6'
|
||||
|
||||
services:
|
||||
chatgpt:
|
||||
build: .
|
||||
ports:
|
||||
- 3000:3000
|
||||
environment:
|
||||
- 'OPENAI_API_KEY='
|
Loading…
Reference in New Issue