Merge pull request #20 from NicolaBernini/tokenflow/liquidations

Dockerization_Proposal
This commit is contained in:
Robert Miller 2021-07-14 21:40:14 -04:00 committed by GitHub
commit 9caa5d2631
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 0 deletions

2
build.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
docker build -t flashbots/mev-inspector-py:0.1 docker/.

19
docker/Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM python:3.9
LABEL maintainer "Nicola Bernini <nicola.bernini@gmail.com>"
COPY requirements.txt .
RUN apt-get update && apt-get -y install sudo
# Create User
ARG user=mev
ARG password=mev
RUN useradd -m ${user} && echo "${user}:${password}" | chpasswd && adduser mev sudo
# Switch to user
USER mev
# Install Python Requirements
RUN pip3 install -r requirements.txt
# Initial Dir
WORKDIR /project

2
docker/requirements.txt Normal file
View File

@ -0,0 +1,2 @@
web3
pyyaml

2
enter.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
docker run -it --rm -v $(pwd):/project flashbots/mev-inspector-py:0.1 /bin/bash