Skip to content

Commit

Permalink
contraints
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanbhosale committed Sep 26, 2024
1 parent 50b4623 commit 48804e6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ RUN apt-get update && apt-get install -y \
# Copy the pyproject.toml file
COPY pyproject.toml .

# Create a constraints file
RUN echo "numcodecs==0.10.2" > constraints.txt

# Install build dependencies and the project
RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
pip install --no-cache-dir build && \
pip install --no-cache-dir . --no-warn-script-location --ignore-installed --no-deps && \
pip install --no-cache-dir -e . --no-warn-script-location
pip install --no-cache-dir -c constraints.txt . && \
pip install --no-cache-dir -e .

# Copy the entire project directory
COPY . /app
Expand Down

0 comments on commit 48804e6

Please sign in to comment.