From f07431886f75f8a71888c67a869fe660f5e0d6ec Mon Sep 17 00:00:00 2001 From: David Cristofaro Date: Fri, 28 Apr 2023 22:14:17 +1000 Subject: [PATCH] Update README --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 3517385..707162e 100644 --- a/README.md +++ b/README.md @@ -23,20 +23,17 @@ The application is deployed at [gpt.dtcristo.com](https://gpt.dtcristo.com/) but ## Usage -Requires a Ruby environment, tested with Ruby 3.2. +Get an [OpenAI API key](https://platform.openai.com/account/api-keys). Run locally in Docker. ```sh # Set OpenAI API key as environment variable. export OPENAI_API_KEY="your_api_key_here" -# Install dependencies. -bundle install - -# Start the web server. -bundle exec puma +# Build and run in Docker. +docker run --env OPENAI_API_KEY --publish 8080:8080 "$(docker build --quiet .)" ``` -Application live at [localhost:9292](http://localhost:9292/). +Application live at [localhost:8080](http://localhost:8080/). ## License