updating docker to use poetry
This commit is contained in:
parent
dfff6b3a70
commit
acf32966f7
18
Dockerfile
18
Dockerfile
@ -1,10 +1,20 @@
|
|||||||
FROM python:3.9
|
FROM python:3.9
|
||||||
|
|
||||||
COPY ./requirements.txt /app/requirements.txt
|
RUN pip install -U pip \
|
||||||
RUN pip install -r /app/requirements.txt
|
&& apt-get update \
|
||||||
|
&& curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
|
||||||
|
|
||||||
|
ENV PATH="${PATH}:/root/.poetry/bin"
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
|
||||||
ENTRYPOINT ["./run.sh"]
|
RUN poetry install
|
||||||
CMD []
|
|
||||||
|
# easy bruh...
|
||||||
|
#ENTRYPOINT ["./run.sh"]
|
||||||
|
|
||||||
|
# easter eggs 😝
|
||||||
|
RUN echo "PS1='🐳:\[\033[1;36m\]\h \[\033[1;34m\]\W\[\033[0;35m\]\[\033[1;36m\]$ \[\033[0m\]'" >> ~/.bashrc
|
||||||
|
|
||||||
|
CMD /bin/bash
|
||||||
|
@ -33,6 +33,9 @@ isortcheck = 'scripts.dev_tools:isortcheck'
|
|||||||
mypy = 'scripts.dev_tools:mypy'
|
mypy = 'scripts.dev_tools:mypy'
|
||||||
black = 'scripts.dev_tools:black'
|
black = 'scripts.dev_tools:black'
|
||||||
blackcheck = 'scripts.dev_tools:blackcheck'
|
blackcheck = 'scripts.dev_tools:blackcheck'
|
||||||
|
start = 'scripts.dev_tools:start'
|
||||||
|
start_it = 'scripts.dev_tools:start_it'
|
||||||
|
build = 'scripts.dev_tools:build'
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
exclude = '''
|
exclude = '''
|
||||||
|
@ -20,3 +20,12 @@ def black():
|
|||||||
|
|
||||||
def blackcheck():
|
def blackcheck():
|
||||||
check_call(['black', '--diff', '--color', '.'])
|
check_call(['black', '--diff', '--color', '.'])
|
||||||
|
|
||||||
|
def start():
|
||||||
|
check_call(['docker', 'run', 'mev-inspect'])
|
||||||
|
|
||||||
|
def build():
|
||||||
|
check_call(['docker', 'build', '-t', 'mev-inspect', '.'])
|
||||||
|
|
||||||
|
def start_it():
|
||||||
|
check_call(['docker', 'run', '-it', 'mev-inspect'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user