diff 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
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