Skip to content

Commit

Permalink
Fix docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
farisd16 committed Nov 28, 2024
1 parent 17ed950 commit 68bd074
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 17 deletions.
112 changes: 100 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"start": "ts-node-dev src/main/server.ts",
"build": "webpack --config webpack/webpack.config.js",
"lint": "eslint -c .eslintrc.js \"**/*.{ts,tsx}\""

},
"engines": {
"node": ">=22.10.0"
Expand All @@ -32,8 +31,8 @@
"@types/ms": "0.7.34",
"@types/node": "22.9.0",
"@types/pdfmake": "0.2.9",
"copy-webpack-plugin": "^12.0.2",
"ts-node": "10.9.2",
"ts-node-dev": "2.0.0",
"webpack-node-externals": "^3.0.0"
"ts-node-dev": "2.0.0"
}
}
17 changes: 15 additions & 2 deletions packages/server/webpack/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var path = require('path');
const nodeExternals = require('webpack-node-externals');
const CopyPlugin = require('copy-webpack-plugin');

module.exports = {
entry: './src/main/server.ts',
Expand All @@ -24,5 +24,18 @@ module.exports = {
},
],
},
externals: [nodeExternals()],
externals: {
canvas: 'commonjs ./canvas/canvas',
'utf-8-validate': 'utf-8-validate',
},
plugins: [
new CopyPlugin({
patterns: [
{
from: '../../node_modules/canvas/build/Release/',
to: 'canvas',
},
],
}),
],
};

0 comments on commit 68bd074

Please sign in to comment.