timeoff-management/timeoff-management-application

Can't get docker working.

Closed this issue · 2 comments

I'm trying to get this working in docker but the dockerfile in the repo's out of date and I can't make it work. It fails when trying to do something with sqlite3 (npm ERR! path /app/timeoff-management/node_modules/sqlite3).

Any ideas?

=> ERROR [11/11] RUN npm install                                                                                                                                                                                          30.1s
------                                                                                                                                                                                                                           
 > [11/11] RUN npm install:                                                                                                                                                                                                      
#14 1.228 npm WARN old lockfile                                                                                                                                                                                                  
#14 1.228 npm WARN old lockfile The package-lock.json file was created with an old version of npm,                                                                                                                               
#14 1.229 npm WARN old lockfile so supplemental metadata must be fetched from the registry.                                                                                                                                      
#14 1.229 npm WARN old lockfile                                                                                                                                                                                                  
#14 1.229 npm WARN old lockfile This is a one-time fix-up, please be patient...
#14 1.229 npm WARN old lockfile 
#14 15.38 npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
#14 15.60 npm WARN deprecated topo@2.0.2: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
#14 15.80 npm WARN deprecated terraformer-wkt-parser@1.2.1: terraformer-wkt-parser is deprecated and no longer supported. Please use @terraformer/wkt.
#14 16.60 npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
#14 16.64 npm WARN deprecated terraformer@1.0.12: terraformer is deprecated and no longer supported. Please use @terraformer/arcgis.
#14 16.72 npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
#14 17.73 npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
#14 18.11 npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
#14 18.64 npm WARN deprecated nodemailer@1.11.0: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
#14 18.66 npm WARN deprecated mailcomposer@2.1.0: This project is unmaintained
#14 18.69 npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
#14 19.37 npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
#14 19.50 npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
#14 20.36 npm WARN deprecated hoek@4.2.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
#14 20.47 npm WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
#14 20.49 npm WARN deprecated har-validator@5.1.5: this library is no longer supported
#14 20.66 npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
#14 20.76 npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
#14 21.26 npm WARN deprecated formidable@1.0.17: Old versions of Formidable are not compatible with the current Node.js; Upgrade to 1.2.0 or later
#14 21.77 npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
#14 22.75 npm WARN deprecated debug@4.1.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
#14 23.08 npm WARN deprecated buildmail@2.0.0: This project is unmaintained
#14 23.19 npm WARN deprecated joi@12.0.0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
#14 23.41 npm WARN deprecated sequelize@3.35.1: This version will no longer receive security fixes per our security policy. Please update to sequelize@5 or above.
#14 23.69 npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
#14 29.84 npm ERR! code 1
#14 29.84 npm ERR! path /app/timeoff-management/node_modules/sqlite3
#14 29.84 npm ERR! command failed
#14 29.84 npm ERR! command sh -c node-pre-gyp install --fallback-to-build
#14 29.84 npm ERR! make: Entering directory '/app/timeoff-management/node_modules/sqlite3/build'
#14 29.84 npm ERR!   ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3310100/sqlite3.c
#14 29.84 npm ERR! make: Leaving directory '/app/timeoff-management/node_modules/sqlite3/build'
#14 29.84 npm ERR! Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
#14 29.84 npm ERR! node-pre-gyp info it worked if it ends with ok
#14 29.84 npm ERR! node-pre-gyp info using node-pre-gyp@0.11.0
#14 29.84 npm ERR! node-pre-gyp info using node@16.6.2 | linux | x64
#14 29.84 npm ERR! node-pre-gyp WARN Using request for node-pre-gyp https download 
#14 29.84 npm ERR! node-pre-gyp info check checked for "/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node" (not found)
#14 29.84 npm ERR! node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz
#14 29.84 npm ERR! node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz
#14 29.84 npm ERR! node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz 
#14 29.84 npm ERR! node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.2.0 and node@16.6.2 (node-v93 ABI, musl) (falling back to source compile with node-gyp) 
#14 29.84 npm ERR! node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz 
#14 29.84 npm ERR! gyp info it worked if it ends with ok
#14 29.84 npm ERR! gyp info using node-gyp@7.1.2
#14 29.84 npm ERR! gyp info using node@16.6.2 | linux | x64
#14 29.84 npm ERR! gyp info ok 
#14 29.84 npm ERR! gyp info it worked if it ends with ok
#14 29.84 npm ERR! gyp info using node-gyp@7.1.2
#14 29.84 npm ERR! gyp info using node@16.6.2 | linux | x64
#14 29.84 npm ERR! gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
#14 29.84 npm ERR! gyp http GET https://unofficial-builds.nodejs.org/download/release/v16.6.2/node-v16.6.2-headers.tar.gz
#14 29.84 npm ERR! gyp http 200 https://unofficial-builds.nodejs.org/download/release/v16.6.2/node-v16.6.2-headers.tar.gz
#14 29.84 npm ERR! gyp http GET https://unofficial-builds.nodejs.org/download/release/v16.6.2/SHASUMS256.txt
#14 29.84 npm ERR! gyp http 200 https://unofficial-builds.nodejs.org/download/release/v16.6.2/SHASUMS256.txt
#14 29.84 npm ERR! (node:70) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
#14 29.84 npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
#14 29.84 npm ERR! gyp info spawn /usr/bin/python3
#14 29.84 npm ERR! gyp info spawn args [
#14 29.84 npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
#14 29.84 npm ERR! gyp info spawn args   'binding.gyp',
#14 29.84 npm ERR! gyp info spawn args   '-f',
#14 29.84 npm ERR! gyp info spawn args   'make',
#14 29.84 npm ERR! gyp info spawn args   '-I',
#14 29.84 npm ERR! gyp info spawn args   '/app/timeoff-management/node_modules/sqlite3/build/config.gypi',
#14 29.84 npm ERR! gyp info spawn args   '-I',
#14 29.84 npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
#14 29.84 npm ERR! gyp info spawn args   '-I',
#14 29.84 npm ERR! gyp info spawn args   '/app/.cache/node-gyp/16.6.2/include/node/common.gypi',
#14 29.84 npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
#14 29.84 npm ERR! gyp info spawn args   '-Dvisibility=default',
#14 29.84 npm ERR! gyp info spawn args   '-Dnode_root_dir=/app/.cache/node-gyp/16.6.2',
#14 29.84 npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
#14 29.84 npm ERR! gyp info spawn args   '-Dnode_lib_file=/app/.cache/node-gyp/16.6.2/<(target_arch)/node.lib',
#14 29.84 npm ERR! gyp info spawn args   '-Dmodule_root_dir=/app/timeoff-management/node_modules/sqlite3',
#14 29.84 npm ERR! gyp info spawn args   '-Dnode_engine=v8',
#14 29.84 npm ERR! gyp info spawn args   '--depth=.',
#14 29.84 npm ERR! gyp info spawn args   '--no-parallel',
#14 29.84 npm ERR! gyp info spawn args   '--generator-output',
#14 29.84 npm ERR! gyp info spawn args   'build',
#14 29.84 npm ERR! gyp info spawn args   '-Goutput_dir=.'
#14 29.84 npm ERR! gyp info spawn args ]
#14 29.84 npm ERR! gyp info ok 
#14 29.84 npm ERR! gyp info it worked if it ends with ok
#14 29.84 npm ERR! gyp info using node-gyp@7.1.2
#14 29.84 npm ERR! gyp info using node@16.6.2 | linux | x64
#14 29.84 npm ERR! gyp info spawn make
#14 29.84 npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
#14 29.85 npm ERR! /bin/sh: python: not found
#14 29.85 npm ERR! make: *** [deps/action_before_build.target.mk:13: Release/obj/gen/sqlite-autoconf-3310100/sqlite3.c] Error 127
#14 29.85 npm ERR! gyp ERR! build error 
#14 29.85 npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
#14 29.85 npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
#14 29.85 npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
#14 29.85 npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
#14 29.85 npm ERR! gyp ERR! System Linux 5.10.16.3-microsoft-standard-WSL2
#14 29.85 npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93"
#14 29.85 npm ERR! gyp ERR! cwd /app/timeoff-management/node_modules/sqlite3
#14 29.85 npm ERR! gyp ERR! node -v v16.6.2
#14 29.85 npm ERR! gyp ERR! node-gyp -v v7.1.2
#14 29.85 npm ERR! gyp ERR! not ok 
#14 29.85 npm ERR! node-pre-gyp ERR! build error 
#14 29.85 npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
#14 29.85 npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/app/timeoff-management/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
#14 29.85 npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
#14 29.85 npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1067:16)
#14 29.85 npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
#14 29.85 npm ERR! node-pre-gyp ERR! System Linux 5.10.16.3-microsoft-standard-WSL2
#14 29.85 npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/app/timeoff-management/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
#14 29.85 npm ERR! node-pre-gyp ERR! cwd /app/timeoff-management/node_modules/sqlite3
#14 29.85 npm ERR! node-pre-gyp ERR! node -v v16.6.2
#14 29.85 npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.11.0
#14 29.85 npm ERR! node-pre-gyp ERR! not ok
#14 29.88 
#14 29.88 npm ERR! A complete log of this run can be found in:
#14 29.88 npm ERR!     /app/.npm/_logs/2021-08-19T12_45_21_326Z-debug.log
------
executor failed running [/bin/sh -c npm install]: exit code: 1

I tried switching to alpine with node preinstalled (https://hub.docker.com/_/node) with the below docker file but the same sqlite error occurs.

FROM node:alpine

EXPOSE 3000

LABEL org.label-schema.schema-version="1.3.0"
LABEL org.label-schema.docker.cmd="docker run -d -p 3000:3000 --name alpine_timeoff"

RUN apk add --no-cache \
    git \
    make \
    python3 \
    vim \
    curl \
    bash \
    sudo \
    sqlite \
    g++

WORKDIR /app

RUN adduser --system app --home /app
USER app
RUN git clone https://github.com/timeoff-management/application.git timeoff-management
WORKDIR /app/timeoff-management

RUN npm install

CMD npm start

Error

#10 1.338 npm WARN old lockfile                                                                                                                                                                                                  
#10 1.338 npm WARN old lockfile The package-lock.json file was created with an old version of npm,                                                                                                                               
#10 1.338 npm WARN old lockfile so supplemental metadata must be fetched from the registry.                                                                                                                                      
#10 1.338 npm WARN old lockfile                                                                                                                                                                                                  
#10 1.338 npm WARN old lockfile This is a one-time fix-up, please be patient...
#10 1.339 npm WARN old lockfile 
#10 14.97 npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
#10 14.99 npm WARN deprecated topo@2.0.2: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
#10 15.18 npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
#10 15.19 npm WARN deprecated terraformer-wkt-parser@1.2.1: terraformer-wkt-parser is deprecated and no longer supported. Please use @terraformer/wkt.
#10 15.59 npm WARN deprecated terraformer@1.0.12: terraformer is deprecated and no longer supported. Please use @terraformer/arcgis.
#10 16.41 npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
#10 16.95 npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
#10 17.93 npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
#10 18.02 npm WARN deprecated nodemailer@1.11.0: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
#10 18.06 npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
#10 18.39 npm WARN deprecated mailcomposer@2.1.0: This project is unmaintained
#10 18.59 npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
#10 19.33 npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
#10 19.65 npm WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
#10 20.17 npm WARN deprecated hoek@4.2.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
#10 20.35 npm WARN deprecated har-validator@5.1.5: this library is no longer supported
#10 20.57 npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
#10 20.66 npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
#10 21.16 npm WARN deprecated formidable@1.0.17: Old versions of Formidable are not compatible with the current Node.js; Upgrade to 1.2.0 or later
#10 21.58 npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
#10 22.90 npm WARN deprecated debug@4.1.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
#10 23.05 npm WARN deprecated joi@12.0.0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
#10 23.18 npm WARN deprecated buildmail@2.0.0: This project is unmaintained
#10 23.31 npm WARN deprecated sequelize@3.35.1: This version will no longer receive security fixes per our security policy. Please update to sequelize@5 or above.
#10 23.62 npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
#10 29.90 npm notice 
#10 29.90 npm notice New patch version of npm available! 7.20.3 -> 7.20.6
#10 29.90 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v7.20.6>
#10 29.90 npm notice Run `npm install -g npm@7.20.6` to update!
#10 29.91 npm notice 
#10 29.91 npm ERR! code 1
#10 29.91 npm ERR! path /app/timeoff-management/node_modules/sqlite3
#10 29.91 npm ERR! command failed
#10 29.91 npm ERR! command sh -c node-pre-gyp install --fallback-to-build
#10 29.91 npm ERR! make: Entering directory '/app/timeoff-management/node_modules/sqlite3/build'
#10 29.91 npm ERR!   ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3310100/sqlite3.c
#10 29.91 npm ERR! make: Leaving directory '/app/timeoff-management/node_modules/sqlite3/build'
#10 29.91 npm ERR! Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
#10 29.91 npm ERR! node-pre-gyp info it worked if it ends with ok
#10 29.91 npm ERR! node-pre-gyp info using node-pre-gyp@0.11.0
#10 29.91 npm ERR! node-pre-gyp info using node@16.6.2 | linux | x64
#10 29.91 npm ERR! node-pre-gyp WARN Using request for node-pre-gyp https download 
#10 29.91 npm ERR! node-pre-gyp info check checked for "/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node" (not found)
#10 29.91 npm ERR! node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz
#10 29.91 npm ERR! node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz
#10 29.91 npm ERR! node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz 
#10 29.91 npm ERR! node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.2.0 and node@16.6.2 (node-v93 ABI, musl) (falling back to source compile with node-gyp) 
#10 29.91 npm ERR! node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz 
#10 29.91 npm ERR! gyp info it worked if it ends with ok
#10 29.91 npm ERR! gyp info using node-gyp@7.1.2
#10 29.91 npm ERR! gyp info using node@16.6.2 | linux | x64
#10 29.91 npm ERR! gyp info ok 
#10 29.91 npm ERR! gyp info it worked if it ends with ok
#10 29.91 npm ERR! gyp info using node-gyp@7.1.2
#10 29.91 npm ERR! gyp info using node@16.6.2 | linux | x64
#10 29.91 npm ERR! gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
#10 29.91 npm ERR! gyp http GET https://unofficial-builds.nodejs.org/download/release/v16.6.2/node-v16.6.2-headers.tar.gz
#10 29.91 npm ERR! gyp http 200 https://unofficial-builds.nodejs.org/download/release/v16.6.2/node-v16.6.2-headers.tar.gz
#10 29.92 npm ERR! gyp http GET https://unofficial-builds.nodejs.org/download/release/v16.6.2/SHASUMS256.txt
#10 29.92 npm ERR! gyp http 200 https://unofficial-builds.nodejs.org/download/release/v16.6.2/SHASUMS256.txt
#10 29.92 npm ERR! (node:70) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
#10 29.92 npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
#10 29.92 npm ERR! gyp info spawn /usr/bin/python3
#10 29.92 npm ERR! gyp info spawn args [
#10 29.92 npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
#10 29.92 npm ERR! gyp info spawn args   'binding.gyp',
#10 29.92 npm ERR! gyp info spawn args   '-f',
#10 29.92 npm ERR! gyp info spawn args   'make',
#10 29.92 npm ERR! gyp info spawn args   '-I',
#10 29.92 npm ERR! gyp info spawn args   '/app/timeoff-management/node_modules/sqlite3/build/config.gypi',
#10 29.92 npm ERR! gyp info spawn args   '-I',
#10 29.92 npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
#10 29.92 npm ERR! gyp info spawn args   '-I',
#10 29.92 npm ERR! gyp info spawn args   '/app/.cache/node-gyp/16.6.2/include/node/common.gypi',
#10 29.92 npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
#10 29.92 npm ERR! gyp info spawn args   '-Dvisibility=default',
#10 29.92 npm ERR! gyp info spawn args   '-Dnode_root_dir=/app/.cache/node-gyp/16.6.2',
#10 29.92 npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
#10 29.92 npm ERR! gyp info spawn args   '-Dnode_lib_file=/app/.cache/node-gyp/16.6.2/<(target_arch)/node.lib',
#10 29.92 npm ERR! gyp info spawn args   '-Dmodule_root_dir=/app/timeoff-management/node_modules/sqlite3',
#10 29.92 npm ERR! gyp info spawn args   '-Dnode_engine=v8',
#10 29.92 npm ERR! gyp info spawn args   '--depth=.',
#10 29.92 npm ERR! gyp info spawn args   '--no-parallel',
#10 29.92 npm ERR! gyp info spawn args   '--generator-output',
#10 29.92 npm ERR! gyp info spawn args   'build',
#10 29.92 npm ERR! gyp info spawn args   '-Goutput_dir=.'
#10 29.92 npm ERR! gyp info spawn args ]
#10 29.92 npm ERR! gyp info ok 
#10 29.92 npm ERR! gyp info it worked if it ends with ok
#10 29.92 npm ERR! gyp info using node-gyp@7.1.2
#10 29.92 npm ERR! gyp info using node@16.6.2 | linux | x64
#10 29.92 npm ERR! gyp info spawn make
#10 29.92 npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
#10 29.92 npm ERR! /bin/sh: python: not found
#10 29.92 npm ERR! make: *** [deps/action_before_build.target.mk:13: Release/obj/gen/sqlite-autoconf-3310100/sqlite3.c] Error 127
#10 29.92 npm ERR! gyp ERR! build error 
#10 29.92 npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
#10 29.92 npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
#10 29.92 npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
#10 29.92 npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
#10 29.92 npm ERR! gyp ERR! System Linux 5.10.16.3-microsoft-standard-WSL2
#10 29.92 npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93"
#10 29.92 npm ERR! gyp ERR! cwd /app/timeoff-management/node_modules/sqlite3
#10 29.92 npm ERR! gyp ERR! node -v v16.6.2
#10 29.92 npm ERR! gyp ERR! node-gyp -v v7.1.2
#10 29.92 npm ERR! gyp ERR! not ok 
#10 29.92 npm ERR! node-pre-gyp ERR! build error 
#10 29.92 npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
#10 29.92 npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/app/timeoff-management/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
#10 29.92 npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
#10 29.92 npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1067:16)
#10 29.92 npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
#10 29.92 npm ERR! node-pre-gyp ERR! System Linux 5.10.16.3-microsoft-standard-WSL2
#10 29.92 npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/app/timeoff-management/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
#10 29.92 npm ERR! node-pre-gyp ERR! cwd /app/timeoff-management/node_modules/sqlite3
#10 29.92 npm ERR! node-pre-gyp ERR! node -v v16.6.2
#10 29.92 npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.11.0
#10 29.92 npm ERR! node-pre-gyp ERR! not ok
#10 29.99 
#10 29.99 npm ERR! A complete log of this run can be found in:
#10 29.99 npm ERR!     /app/.npm/_logs/2021-08-19T13_07_35_127Z-debug.log
------
executor failed running [/bin/sh -c npm install]: exit code: 1

I found some posts that recommended uninstalling and reinstalling sqlite with the below commands but they don't appear to help.

FROM node:alpine

EXPOSE 3000

LABEL org.label-schema.schema-version="1.3.0"
LABEL org.label-schema.docker.cmd="docker run -d -p 3000:3000 --name alpine_timeoff"

RUN apk add --no-cache \
    git \
    make \
    python3 \
    vim \
    curl \
    bash \
    sudo \
    sqlite \
    g++

WORKDIR /app

RUN npm install -g npm
RUN npm uninstall sqlite3
RUN npm cache clean --force
RUN sudo npm install sqlite3

RUN adduser --system app --home /app
USER app
RUN git clone https://github.com/timeoff-management/application.git timeoff-management
WORKDIR /app/timeoff-management

RUN npm install

CMD npm start

Error

 => ERROR [11/11] RUN npm install                                                                                                                                                                                          29.0s
------                                                                                                                                                                                                                           
 > [11/11] RUN npm install:                                                                                                                                                                                                      
#14 1.171 npm WARN old lockfile                                                                                                                                                                                                  
#14 1.172 npm WARN old lockfile The package-lock.json file was created with an old version of npm,                                                                                                                               
#14 1.172 npm WARN old lockfile so supplemental metadata must be fetched from the registry.                                                                                                                                      
#14 1.172 npm WARN old lockfile 
#14 1.172 npm WARN old lockfile This is a one-time fix-up, please be patient...
#14 1.172 npm WARN old lockfile 
#14 13.74 npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
#14 14.06 npm WARN deprecated topo@2.0.2: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
#14 14.17 npm WARN deprecated terraformer-wkt-parser@1.2.1: terraformer-wkt-parser is deprecated and no longer supported. Please use @terraformer/wkt.
#14 15.03 npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
#14 15.03 npm WARN deprecated terraformer@1.0.12: terraformer is deprecated and no longer supported. Please use @terraformer/arcgis.
#14 15.27 npm WARN deprecated request-promise@4.2.6: request-promise has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
#14 15.37 npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
#14 17.05 npm WARN deprecated mkdirp@0.5.4: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
#14 17.21 npm WARN deprecated nodemailer@1.11.0: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/
#14 17.27 npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
#14 17.41 npm WARN deprecated mailcomposer@2.1.0: This project is unmaintained
#14 17.56 npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
#14 18.43 npm WARN deprecated debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
#14 18.92 npm WARN deprecated hoek@4.2.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
#14 18.95 npm WARN deprecated node-pre-gyp@0.11.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
#14 19.06 npm WARN deprecated har-validator@5.1.5: this library is no longer supported
#14 19.22 npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
#14 19.33 npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
#14 19.81 npm WARN deprecated formidable@1.0.17: Old versions of Formidable are not compatible with the current Node.js; Upgrade to 1.2.0 or later
#14 20.31 npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
#14 21.51 npm WARN deprecated debug@4.1.0: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
#14 21.82 npm WARN deprecated buildmail@2.0.0: This project is unmaintained
#14 21.83 npm WARN deprecated joi@12.0.0: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
#14 21.96 npm WARN deprecated sequelize@3.35.1: This version will no longer receive security fixes per our security policy. Please update to sequelize@5 or above.
#14 22.35 npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
#14 28.67 npm ERR! code 1
#14 28.67 npm ERR! path /app/timeoff-management/node_modules/sqlite3
#14 28.67 npm ERR! command failed
#14 28.67 npm ERR! command sh -c node-pre-gyp install --fallback-to-build
#14 28.67 npm ERR! make: Entering directory '/app/timeoff-management/node_modules/sqlite3/build'
#14 28.67 npm ERR!   ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3310100/sqlite3.c
#14 28.67 npm ERR! make: Leaving directory '/app/timeoff-management/node_modules/sqlite3/build'
#14 28.67 npm ERR! Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
#14 28.67 npm ERR! node-pre-gyp info it worked if it ends with ok
#14 28.67 npm ERR! node-pre-gyp info using node-pre-gyp@0.11.0
#14 28.67 npm ERR! node-pre-gyp info using node@16.6.2 | linux | x64
#14 28.67 npm ERR! node-pre-gyp WARN Using request for node-pre-gyp https download 
#14 28.67 npm ERR! node-pre-gyp info check checked for "/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node" (not found)
#14 28.67 npm ERR! node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz
#14 28.67 npm ERR! node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz
#14 28.67 npm ERR! node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz 
#14 28.67 npm ERR! node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.2.0 and node@16.6.2 (node-v93 ABI, musl) (falling back to source compile with node-gyp) 
#14 28.67 npm ERR! node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v93-linux-x64.tar.gz 
#14 28.67 npm ERR! gyp info it worked if it ends with ok
#14 28.67 npm ERR! gyp info using node-gyp@7.1.2
#14 28.67 npm ERR! gyp info using node@16.6.2 | linux | x64
#14 28.67 npm ERR! gyp info ok 
#14 28.67 npm ERR! gyp info it worked if it ends with ok
#14 28.67 npm ERR! gyp info using node-gyp@7.1.2
#14 28.67 npm ERR! gyp info using node@16.6.2 | linux | x64
#14 28.67 npm ERR! gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"
#14 28.67 npm ERR! gyp http GET https://unofficial-builds.nodejs.org/download/release/v16.6.2/node-v16.6.2-headers.tar.gz
#14 28.67 npm ERR! gyp http 200 https://unofficial-builds.nodejs.org/download/release/v16.6.2/node-v16.6.2-headers.tar.gz
#14 28.67 npm ERR! gyp http GET https://unofficial-builds.nodejs.org/download/release/v16.6.2/SHASUMS256.txt
#14 28.67 npm ERR! gyp http 200 https://unofficial-builds.nodejs.org/download/release/v16.6.2/SHASUMS256.txt
#14 28.67 npm ERR! (node:70) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
#14 28.67 npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
#14 28.67 npm ERR! gyp info spawn /usr/bin/python3
#14 28.67 npm ERR! gyp info spawn args [
#14 28.67 npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
#14 28.67 npm ERR! gyp info spawn args   'binding.gyp',
#14 28.67 npm ERR! gyp info spawn args   '-f',
#14 28.67 npm ERR! gyp info spawn args   'make',
#14 28.67 npm ERR! gyp info spawn args   '-I',
#14 28.67 npm ERR! gyp info spawn args   '/app/timeoff-management/node_modules/sqlite3/build/config.gypi',
#14 28.67 npm ERR! gyp info spawn args   '-I',
#14 28.67 npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
#14 28.67 npm ERR! gyp info spawn args   '-I',
#14 28.67 npm ERR! gyp info spawn args   '/app/.cache/node-gyp/16.6.2/include/node/common.gypi',
#14 28.67 npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
#14 28.67 npm ERR! gyp info spawn args   '-Dvisibility=default',
#14 28.67 npm ERR! gyp info spawn args   '-Dnode_root_dir=/app/.cache/node-gyp/16.6.2',
#14 28.67 npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
#14 28.67 npm ERR! gyp info spawn args   '-Dnode_lib_file=/app/.cache/node-gyp/16.6.2/<(target_arch)/node.lib',
#14 28.67 npm ERR! gyp info spawn args   '-Dmodule_root_dir=/app/timeoff-management/node_modules/sqlite3',
#14 28.67 npm ERR! gyp info spawn args   '-Dnode_engine=v8',
#14 28.67 npm ERR! gyp info spawn args   '--depth=.',
#14 28.67 npm ERR! gyp info spawn args   '--no-parallel',
#14 28.67 npm ERR! gyp info spawn args   '--generator-output',
#14 28.67 npm ERR! gyp info spawn args   'build',
#14 28.67 npm ERR! gyp info spawn args   '-Goutput_dir=.'
#14 28.67 npm ERR! gyp info spawn args ]
#14 28.67 npm ERR! gyp info ok 
#14 28.67 npm ERR! gyp info it worked if it ends with ok
#14 28.67 npm ERR! gyp info using node-gyp@7.1.2
#14 28.67 npm ERR! gyp info using node@16.6.2 | linux | x64
#14 28.67 npm ERR! gyp info spawn make
#14 28.67 npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
#14 28.67 npm ERR! /bin/sh: python: not found
#14 28.67 npm ERR! make: *** [deps/action_before_build.target.mk:13: Release/obj/gen/sqlite-autoconf-3310100/sqlite3.c] Error 127
#14 28.67 npm ERR! gyp ERR! build error 
#14 28.67 npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
#14 28.67 npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
#14 28.67 npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
#14 28.67 npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
#14 28.67 npm ERR! gyp ERR! System Linux 5.10.16.3-microsoft-standard-WSL2
#14 28.67 npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93"
#14 28.67 npm ERR! gyp ERR! cwd /app/timeoff-management/node_modules/sqlite3
#14 28.67 npm ERR! gyp ERR! node -v v16.6.2
#14 28.67 npm ERR! gyp ERR! node-gyp -v v7.1.2
#14 28.67 npm ERR! gyp ERR! not ok 
#14 28.67 npm ERR! node-pre-gyp ERR! build error 
#14 28.67 npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64/node_sqlite3.node --module_name=node_sqlite3 --module_path=/app/timeoff-management/node_modules/sqlite3/lib/binding/node-v93-linux-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
#14 28.67 npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/app/timeoff-management/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
#14 28.67 npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
#14 28.67 npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1067:16)
#14 28.67 npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
#14 28.68 npm ERR! node-pre-gyp ERR! System Linux 5.10.16.3-microsoft-standard-WSL2
#14 28.68 npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/app/timeoff-management/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
#14 28.68 npm ERR! node-pre-gyp ERR! cwd /app/timeoff-management/node_modules/sqlite3
#14 28.68 npm ERR! node-pre-gyp ERR! node -v v16.6.2
#14 28.68 npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.11.0
#14 28.68 npm ERR! node-pre-gyp ERR! not ok
#14 28.72 
#14 28.72 npm ERR! A complete log of this run can be found in:
#14 28.72 npm ERR!     /app/.npm/_logs/2021-08-19T13_13_18_860Z-debug.log
------
executor failed running [/bin/sh -c npm install]: exit code: 1
snwbr commented

@pwpbarney what did you end up doing?

Below is my working docker file. Remember to update the office365 mail settings for your environment or remove that section completely.

#Build: docker build -t timeoff-management .

FROM node:14-alpine

EXPOSE 3000

LABEL org.label-schema.schema-version="1.3.0"
LABEL org.label-schema.docker.cmd="docker run -d -p 3000:3000 --name timeoff-management"

RUN apk update
RUN apk upgrade
#Install dependencies
RUN apk add \
    git \
    make \
    python \
    g++ \
    gcc \
    libc-dev \
    clang

#Update npm
RUN npm install -g npm

#Add user so it doesn't run as root
RUN adduser --system app --home /app
USER app
WORKDIR /app

#clone app
RUN git clone https://github.com/timeoff-management/application.git timeoff-management
WORKDIR /app/timeoff-management/config

#update app.json with correct office365 mail and url variables.
RUN sed -i 's/"send_emails"              \: false,/"send_emails"              : true,/' app.json
RUN sed -i 's/email@test.com/noreply@domain.co.uk/' app.json
RUN sed -i 's/"localhost"/"smtp.office365.com"/' app.json
RUN sed -i 's/25/587/' app.json
RUN sed -i '/587,/a|     "secureConnection" : false,' app.json
RUN sed -i 's/|//' app.json
RUN sed -i '/"secureConnection" : false,/a|     "tls" : {' app.json
RUN sed -i 's/|//' app.json
RUN sed -i '/"tls" : {/a|       "ciphers" : "SSLv3"' app.json
RUN sed -i 's/|//' app.json
RUN sed -i '/"ciphers" : "SSLv3"/a|     },' app.json
RUN sed -i 's/|//' app.json
RUN sed -i 's/\: "user/\: "noreply@domain.co.uk/' app.json
RUN sed -i 's/\: "pass/\: "PASSWORD/' app.json
RUN sed -i 's/http:\/\/app.timeoff.management/https:\/\/holiday.domain.co.uk/' app.json

WORKDIR /app/timeoff-management

#bump formidable up a version to fix user import error.
RUN sed -i 's/formidable"\: "~1.0.17/formidable"\: "1.1.1/' package.json

#install app
RUN npm install -y

CMD npm start