Skip to content

Commit

Permalink
Update dependencies, bump node version
Browse files Browse the repository at this point in the history
  • Loading branch information
MiklerGM committed Jun 26, 2019
1 parent 725ef01 commit a7a778b
Show file tree
Hide file tree
Showing 3 changed files with 2,882 additions and 1,344 deletions.
16 changes: 14 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mhart/alpine-node:8
FROM mhart/alpine-node:10
MAINTAINER Denis Carriere <@DenisCarriere>

# Create app directory
Expand All @@ -10,8 +10,20 @@ COPY package.json /src/
COPY yarn.lock /src/
RUN yarn install --production

# Remove unused sqlite3-offline binaries
RUN /bin/mv \
node_modules/sqlite3-offline/binaries/sqlite3-linux/node-v64-linux-x64 \
node_modules/sqlite3-offline/binaries/node-v64-linux-x64 \
&& /bin/rm -rf \
node_modules/sqlite3-offline/binaries/sqlite3-darwin/* \
node_modules/sqlite3-offline/binaries/sqlite3-darwin/* \
node_modules/sqlite3-offline/binaries/sqlite3-linux/* \
&& /bin/mv \
node_modules/sqlite3-offline/binaries/node-v64-linux-x64 \
node_modules/sqlite3-offline/binaries/sqlite3-linux

# Smaller image
FROM mhart/alpine-node:slim-8
FROM mhart/alpine-node:slim-10

RUN mkdir -p /src
# Copy node_modules from previous layer
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@
"dependencies": {
"@mapbox/tiletype": "^0.3.0",
"body-parser": "^1.15.2",
"conf": "^1.1.2",
"conf": "^5.0.0",
"express": "^4.14.0",
"global-mercator": "2.7.0",
"mbtiles-offline": "^3.1.0",
"meow": "^3.7.0",
"global-mercator": "3.0.3",
"mbtiles-offline": "^4.0.1",
"meow": "^5.0.0",
"mkdirp": "^0.5.1",
"serve-favicon": "^2.4.3",
"update-notifier": "^2.0.0",
"update-notifier": "^3.0.0",
"wmsc": "^0.1.1",
"wmts": "^1.8.1"
"wmts": "^2.0.0"
},
"devDependencies": {
"@types/node": "^7.0.27",
"axios": "^0.16.1",
"standard": "^8.6.0",
"tap": "^10.3.3"
"@types/node": "^12.0.10",
"axios": "^0.19.0",
"standard": "^12.0.1",
"tap": "^14.3.1"
},
"keywords": [
"gis",
Expand Down
Loading

0 comments on commit a7a778b

Please sign in to comment.