Skip to content
Open
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
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
30 changes: 30 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM node:11

ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
ENV PATH=$PATH:/home/node/.npm-global/bin

USER node
WORKDIR /home/node/

COPY *.json ./

RUN npm install --only=dev && \
npm install --only=prod

COPY src/ ./src/
COPY bin/ ./bin/
RUN npm pack

FROM node:11

ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
ENV PATH=$PATH:/home/node/.npm-global/bin

WORKDIR /home/node/
USER node
COPY --from=0 /home/node/*.tgz .

RUN npm install -g *.tgz

ENTRYPOINT ["shst"]
CMD ["--help"]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"leveldown": "^5.0.0",
"levelup": "^4.0.1",
"node-fetch": "^2.3.0",
"osrm": "^5.22.0",
"osrm": "5.22.0",
"rbush": "^3.0.0",
"sharedstreets-pbf": "^0.8.0",
"sharedstreets-types": "^1.3.1",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
/* Basic Options */
"rootDir": ".", /* To keep src directory structure TSC3 requires rootDir to be set */
"outDir": "build/",
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
Expand Down