Fix Dockerfile.

This commit is contained in:
David Manouchehri 2023-12-10 01:44:46 -05:00
parent abe1662eef
commit 2d8cebd408
No known key found for this signature in database

View file

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