Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker build -t caud .
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
eth-ape==0.5.2
eth-ape==0.5.*
pytest
1 change: 1 addition & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker run --rm --name caud -v "$(pwd):/app" -it caud