Skip to content

Commit a9edf2a

Browse files
committed
chore(docker): reduce image byte size
1 parent 1d9d7eb commit a9edf2a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.dockerignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
.git
22
.gitignore
3-
.circleci
4-
.travis.yml
53
Dockerfile
64
.dockerignore
75
node_modules
86
amalgamation
97
.nyc_output
108
coverage
119
tmp
12-
package-lock.json
1310
*.md
1411
*.db
12+
*.db*
1513
*.db-journal
1614
*.geojson
15+
*.geojsonl
1716
*.gz
17+
*.zip
1818
.tap

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM pelias/baseimage
33
# install commands used by bin/download script
44
RUN apt-get update && \
55
apt-get install -y jq lbzip2 pigz zstd && \
6+
apt-get clean && \
67
rm -rf /var/lib/apt/lists/*
78

89
# working directory
@@ -15,7 +16,8 @@ COPY . /code
1516
RUN npm install && \
1617
npm run env_check && \
1718
npm test && \
18-
npm prune --production
19+
npm prune --production && \
20+
rm -rf ~/.npm /tmp/*
1921

2022
# entrypoint
2123
ENTRYPOINT ["node", "bin/spatial.js"]

0 commit comments

Comments
 (0)