diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..be1b111b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM node:21 + +COPY . /app +WORKDIR /app +RUN npm install +CMD ["npm","run","dev"] +EXPOSE 3000 diff --git a/README.md b/README.md index 1a4be168..d1be2b86 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,14 @@ npm install npm run dev ``` +## Docker + +To run this app as a docker container do the following: + +```bash +echo "OPENAI_API_KEY=sk-your-key" > .env.local +docker build -t draw-a-ui:latest . +docker run --env-file .env.local -p 3000:3000 -d --name draw-ai draw-a-ui:latest +``` + Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.