Dockerization_Proposal
This commit is contained in:
parent
ab2564d2b5
commit
8781e914ff
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
|
2
docker/requirements.txt
Normal file
2
docker/requirements.txt
Normal file
@ -0,0 +1,2 @@
|
||||
web3
|
||||
pyyaml
|
Loading…
x
Reference in New Issue
Block a user