Adding Docker

This commit is contained in:
Nicola Bernini 2021-07-11 18:08:37 +02:00
parent fea05e16c7
commit 97515b7419
4 changed files with 24 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.6
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

1
docker/requirements.txt Normal file
View File

@ -0,0 +1 @@
web3

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