diff --git a/Dockerfile b/Dockerfile index fa1147c39..0647ee92a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,9 +12,18 @@ RUN apt-get update && \ apt-get install -y gcc python3-dev && \ rm -rf /var/lib/apt/lists/* +RUN pip install --upgrade pip && \ + pip install build + # Copy the current directory contents into the container at /app COPY . /app +# Build the package +RUN rm -rf dist/* && python -m build + +# Install the package +RUN pip install dist/*.whl + # Install any needed packages specified in requirements.txt RUN pip wheel --no-cache-dir --wheel-dir=wheels -r requirements.txt RUN pip install --no-cache-dir --find-links=wheels -r requirements.txt