comparison Dockerfile @ 26:7d3cc440e578

add setup.py
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Sun, 21 Nov 2021 18:54:10 +0100
parents 32061555853c
children 30535f42d0ff
comparison
equal deleted inserted replaced
25:c75ee64c812c 26:7d3cc440e578
2 2
3 # Install Python image 3 # Install Python image
4 FROM python:3.8-slim-buster 4 FROM python:3.8-slim-buster
5 5
6 # Create working directory and install dependencies 6 # Create working directory and install dependencies
7 WORKDIR /app 7 WORKDIR /bitcaviar-plus
8 COPY requirements.txt requirements.txt
9 RUN pip3 install -r requirements.txt
10 8
11 # Copy files 9 # Copy files
12 COPY src/bitcaviar_plus bitcaviar_plus/ 10 COPY . .
13 COPY tests/implementation_testing.py .
14 11
15 # Run script 12 # Install package
16 CMD ["python3", "-u", "implementation_testing.py"] 13 RUN ["python", "setup.py", "install"]
14
15 # Test package
16 CMD ["python3", "-u", "tests/implementation_testing.py"]