Mercurial > public > bitcaviar-plus
changeset 26:7d3cc440e578
add setup.py
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sun, 21 Nov 2021 18:54:10 +0100 |
parents | c75ee64c812c |
children | 348a07008703 |
files | Dockerfile setup.cfg setup.py |
diffstat | 3 files changed, 14 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/Dockerfile Sun Nov 21 18:38:18 2021 +0100 +++ b/Dockerfile Sun Nov 21 18:54:10 2021 +0100 @@ -4,13 +4,13 @@ FROM python:3.8-slim-buster # Create working directory and install dependencies -WORKDIR /app -COPY requirements.txt requirements.txt -RUN pip3 install -r requirements.txt +WORKDIR /bitcaviar-plus # Copy files -COPY src/bitcaviar_plus bitcaviar_plus/ -COPY tests/implementation_testing.py . +COPY . . -# Run script -CMD ["python3", "-u", "implementation_testing.py"] \ No newline at end of file +# Install package +RUN ["python", "setup.py", "install"] + +# Test package +CMD ["python3", "-u", "tests/implementation_testing.py"] \ No newline at end of file