Skip to content

Commit

Permalink
Fix docker images build
Browse files Browse the repository at this point in the history
  • Loading branch information
javitonino committed Nov 15, 2024
1 parent 735d9dc commit 33e0767
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
FROM python:3.12 AS requirements
RUN pip install pdm
COPY pdm.lock pyproject.toml .
RUN pdm export --prod --no-hashes | grep -v ^-e > requirements.lock.txt
RUN pdm export --prod --no-hashes | grep -v ^-e | grep -v nidx_protos > requirements.lock.txt

FROM python:3.12
RUN mkdir -p /usr/src/app
Expand Down Expand Up @@ -41,6 +41,7 @@ COPY nucliadb_protos /usr/src/app/nucliadb_protos
COPY nucliadb_models /usr/src/app/nucliadb_models
COPY nucliadb /usr/src/app/nucliadb
COPY nucliadb_performance /usr/src/app/nucliadb_performance
COPY nidx/nidx_protos /usr/src/app/nidx/nidx_protos

# Create a fake binding to avoid installing the real one
RUN mkdir nucliadb_node_binding && \
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.pipbinding
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
FROM python:3.12 AS requirements
RUN pip install pdm
COPY pdm.lock pyproject.toml .
RUN pdm export --prod --no-hashes | grep -v ^-e > requirements.lock.txt
RUN pdm export --prod --no-hashes | grep -v ^-e | grep -v nidx_protos > requirements.lock.txt

FROM python:3.12
RUN pip install pdm
Expand Down Expand Up @@ -39,6 +39,7 @@ COPY nucliadb_protos /usr/src/app/nucliadb_protos
COPY nucliadb_models /usr/src/app/nucliadb_models
COPY nucliadb /usr/src/app/nucliadb
COPY nucliadb_performance /usr/src/app/nucliadb_performance
COPY nidx/nidx_protos /usr/src/app/nidx/nidx_protos

# Create a fake binding to avoid installing the real one
RUN mkdir nucliadb_node_binding && \
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile.withbinding
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ RUN set -eux; \
FROM python:3.12 AS requirements
RUN pip install pdm
COPY pdm.lock pyproject.toml .
RUN pdm export --prod --no-hashes | grep -v ^-e > requirements.lock.txt
RUN pdm export --prod --no-hashes | grep -v ^-e | grep -v nidx_protos > requirements.lock.txt

FROM python:3.12
RUN pip install pdm
Expand Down Expand Up @@ -85,6 +85,7 @@ COPY nucliadb_protos /usr/src/app/nucliadb_protos
COPY nucliadb_models /usr/src/app/nucliadb_models
COPY nucliadb /usr/src/app/nucliadb
COPY nucliadb_performance /usr/src/app/nucliadb_performance
COPY nidx/nidx_protos /usr/src/app/nidx/nidx_protos

# Create a fake binding to avoid installing the real one
RUN mkdir nucliadb_node_binding && \
Expand Down

0 comments on commit 33e0767

Please sign in to comment.