diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1c271c2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM python:3.9-slim as builder + + +# Install Linux dependencies. +RUN apt-get update \ + && apt-get install -y gcc openssh-client git \ + && apt-get clean + +# Copy files and set working directory. +COPY . /app +WORKDIR /app + +# Install Python dependencies. +RUN pip install --upgrade pip && \ + pip install --user -r requirements.txt && \ + pip install --user -r docs/requirements.txt + +# Set up ape. +RUN /root/.local/bin/ape plugins install . && \ + ape compile --size + +# Run the container. +ENTRYPOINT bash diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..e157e83 --- /dev/null +++ b/build.sh @@ -0,0 +1 @@ +docker build -t caud . diff --git a/requirements.txt b/requirements.txt index e0baa43..558488d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -eth-ape==0.5.2 +eth-ape==0.5.* pytest diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..fa3bc92 --- /dev/null +++ b/run.sh @@ -0,0 +1 @@ +docker run --rm --name caud -v "$(pwd):/app" -it caud