Skip to content

Commit

Permalink
dockerfile, scripts, readme updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bhalim44 committed Jul 24, 2024
1 parent 881ba24 commit 866c83e
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
FROM python3.9-slim-bookworm
FROM python:3.9

COPY . /home
WORKDIR /home

RUN pip3 install -r requirements.txt
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ This repo is inteded for use with Python 3.9
virtualenv --python=python3.9 .venv
source .venv/bin/activate
```

```
./build-docker.sh
Run the following command from the agents directory to run an ephemeral docker container with a bash shell and mounted volume:
./run-docker-dev.sh
```
2 changes: 2 additions & 0 deletions build-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
docker build -f Dockerfile --tag polymarket-agents:latest .
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ newsapi-python==0.2.7

# local rag
jq
langchain-chroma

# dependencies of py-clob-client
eip712-structs
web3

2 changes: 2 additions & 0 deletions run-docker-dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
docker run --rm -it -v $(pwd):/home polymarket-agents:latest bash
2 changes: 2 additions & 0 deletions run-docker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
docker run --rm -it polymarket-agents:latest

0 comments on commit 866c83e

Please sign in to comment.