Fix Makefile and Dockerfile

This commit is contained in:
Hsiao-Wei Wang 2020-11-03 14:28:19 +08:00
parent 014e34ce1b
commit 2d0813ba78
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
2 changed files with 6 additions and 3 deletions

View File

@ -12,4 +12,8 @@ RUN pip3 install -r requirements.txt
RUN python3 setup.py install RUN python3 setup.py install
ARG cli_command
ENTRYPOINT [ "python3", "./eth2deposit/deposit.py" ] ENTRYPOINT [ "python3", "./eth2deposit/deposit.py" ]
CMD [ $cli_command ]

View File

@ -41,7 +41,7 @@ venv_lint: venv_build_test
$(VENV_ACTIVATE) && flake8 --config=flake8.ini ./eth2deposit ./tests && mypy --config-file mypy.ini -p eth2deposit $(VENV_ACTIVATE) && flake8 --config=flake8.ini ./eth2deposit ./tests && mypy --config-file mypy.ini -p eth2deposit
venv_deposit: venv_build venv_deposit: venv_build
$(VENV_ACTIVATE) && python ./eth2deposit/deposit.py $(VENV_ACTIVATE) && python ./eth2deposit/deposit.py $(filter-out $@,$(MAKECMDGOALS))
build_macos: venv_build build_macos: venv_build
${VENV_NAME}/bin/python -m pip install -r ./build_configs/macos/requirements.txt ${VENV_NAME}/bin/python -m pip install -r ./build_configs/macos/requirements.txt
@ -57,5 +57,4 @@ build_docker:
@docker build --pull -t $(DOCKER_IMAGE) . @docker build --pull -t $(DOCKER_IMAGE) .
run_docker: run_docker:
@docker run -it --rm $(DOCKER_IMAGE) @docker run -it --rm $(DOCKER_IMAGE) $(filter-out $@,$(MAKECMDGOALS))