Skip to content

Commit

Permalink
Install application dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
AutoPR committed May 8, 2023
1 parent 3be84a2 commit 21accd9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
RUN apt-get update && \
apt-get install -y openjdk-8-jdk && \
apt-get clean;

COPY . /app

RUN cd /app && \
./gradlew build --no-daemon && \
rm -rf /root/.gradle

CMD ["java", "-jar", "/app/build/libs/myapp.jar"]
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ This is a demo project showcasing how to use the OpenAI API with a bash script.

1. Obtain an OpenAI API key by following the instructions [here](https://beta.openai.com/docs/quickstart).
2. Clone this repository: `git clone https://github.com/<username>/demo-project.git`
3. Install `jq` if it's not already installed on your system.
1. Install Docker by following the instructions for your operating system [here](https://docs.docker.com/get-docker/).
2. Clone this repository: `git clone https://github.com/<username>/demo-project.git`
3. Set the `OPENAI_API_KEY` environment variable to your API key: `export OPENAI_API_KEY=<your api key>`
"outcome": "Successfully rewritten the hunk to add instructions for installing Docker."
}
4. Set the `OPENAI_API_KEY` environment variable to your API key: `export OPENAI_API_KEY=<your api key>`
5. Run the script: `./openai-chat.sh`

Expand Down

0 comments on commit 21accd9

Please sign in to comment.