Skip to content

Commit

Permalink
aip-dev#1277 fix docker build locally by adding cython version constr…
Browse files Browse the repository at this point in the history
…aint
  • Loading branch information
guilherme-ptml committed Apr 16, 2024
1 parent fbf2a22 commit c6a8767
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ WORKDIR /code/

# Install Python packages for this project.
COPY requirements.txt /code/requirements.txt
RUN apk add git && \
pip install -r requirements.txt && \
apk del git
COPY cython_constraint.txt /code/cython_constraint.txt
RUN apk add git
RUN PIP_CONSTRAINT=cython_constraint.txt pip install -r requirements.txt
RUN pip install -r requirements.txt
RUN apk del git

# Set environment variables.
ENV FLASK_ENV development
Expand Down
1 change: 1 addition & 0 deletions cython_constraint.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Cython<3

0 comments on commit c6a8767

Please sign in to comment.