Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Build outputs / generated files
# Build outputs / generated files. core/c-src/bindings.c is NOT excluded: it is
# the committed projection this image compiles, not something the image produces.
node_modules/
wasm/
core/c-src/bindings.c
dist/
coverage/

Expand Down
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,13 @@ COPY --from=mobilitydb_src /root/MobilityDB /root/MobilityDB

WORKDIR /app

# Install node deps first (cached unless package.json or lock change)
COPY package.json package-lock.json ./
RUN npm ci --ignore-scripts

# Now copy the rest and generate bindings
# The wrappers are taken from the tree rather than regenerated here. They are a
# projection of the MEOS-API catalog, and the catalog is derived from MobilityDB
# rather than committed, so an image that regenerates needs a catalog the tree
# does not carry. Compiling the committed wrappers also makes this build answer
# the question that matters to a consumer of the published package, who compiles
# exactly these: that they still build against the MEOS they are linked to.
COPY . .
RUN npm run generate

# CMAKE: configure MobilityDB
RUN INCLUDES="-I/root/geos/include -I/root/geos/build/capi -I/root/json-c-install/include -I/root/json-c-install/include/json-c" \
Expand Down
Loading