Adding Docker
This commit is contained in:
parent
fea05e16c7
commit
97515b7419
2
build.sh
Executable file
2
build.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
docker build -t flashbots/mev-inspector-py:0.1 docker/.
|
19
docker/Dockerfile
Normal file
19
docker/Dockerfile
Normal 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
1
docker/requirements.txt
Normal file
@ -0,0 +1 @@
|
||||
web3
|
Loading…
x
Reference in New Issue
Block a user