Skip to content

Commit

Permalink
Merge pull request #1333 from MatthewReed303/master
Browse files Browse the repository at this point in the history
Update odbc to v2.4.9 and node to v18
  • Loading branch information
unocelli authored Aug 25, 2024
2 parents c06724b + 3615eb1 commit 5536d5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
22 changes: 1 addition & 21 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-bookworm
FROM node:18-bookworm

ARG NODE_SNAP=false

Expand All @@ -25,26 +25,6 @@ WORKDIR /usr/src/app
# Copy odbcinst.ini to /etc
RUN cp FUXA/odbc/odbcinst.ini /etc/odbcinst.ini

# Clone node-odbc repository
RUN git clone https://github.com/markdirish/node-odbc.git

# Change working directory to node-odbc
WORKDIR /usr/src/app/node-odbc

# Install compatible versions of global npm packages
RUN npm install -g node-gyp && \
npm install -g npm@8 && \
npm install -g node-addon-api && \
npm install -g @mapbox/node-pre-gyp

# Install dependencies and build node-odbc
RUN npm ci --production && \
./node_modules/.bin/node-pre-gyp rebuild --production && \
./node_modules/.bin/node-pre-gyp package

# Build and install node-odbc
#RUN npm install

# Install Fuxa server
WORKDIR /usr/src/app/FUXA/server
RUN npm install
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"node-schedule": "2.1.1",
"nodemailer": "6.9.9",
"nopt": "5.0.0",
"odbc": "2.4.8",
"odbc": "2.4.9",
"pdfmake": "0.2.5",
"socket.io": "2.5.0",
"sqlite3": "5.1.5",
Expand Down

0 comments on commit 5536d5e

Please sign in to comment.