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
20 changes: 6 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
FROM ubuntu:noble

# apt dependencies
RUN apt-get update -y && \
apt-get install -y curl && \
curl -fsSL https://deb.nodesource.com/setup_24.x -o nodesource_setup.sh && \
bash nodesource_setup.sh && \
apt-get install -y nodejs libsqlite3-mod-spatialite && \
rm -rf /var/lib/apt/lists/*
FROM pelias/baseimage

# working directory
WORKDIR /code

# copy source files
COPY . /code

# install npm dependencies
RUN npm i

# run tests
RUN npm t
# install npm dependencies, run tests and prune dev dependencies
RUN npm install && \
npm run env_check && \
npm test && \
npm prune --production

# entrypoint
ENTRYPOINT ["node", "bin/spatial.js"]
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@
"yargs": "^13.3.0"
},
"devDependencies": {
"difflet": "^1.0.1",
"glob": "^7.1.6",
"mitata": "^1.0.34",
"node-mocks-http": "^1.17.2",
"precommit-hook": "^3.0.0",
Expand Down