From cdb2b423dc641622ee458b9f4fe31a85842106f0 Mon Sep 17 00:00:00 2001 From: Robin Date: Sat, 14 Dec 2024 20:33:24 +0100 Subject: [PATCH 1/2] Fixed Docker Build --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f393fde..37239db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ RUN apt-get update && \ ENV SSL_VERSION=1.0.2o -RUN curl https://www.openssl.org/source/openssl-$SSL_VERSION.tar.gz -O && \ +RUN wget https://github.com/openssl/openssl/releases/download/OpenSSL_1_0_2o/openssl-$SSL_VERSION.tar.gz && \ tar -xzf openssl-$SSL_VERSION.tar.gz && \ cd openssl-$SSL_VERSION && ./config && make depend && make install && \ cd .. && rm -rf openssl-$SSL_VERSION* From 2e159d56245b832978da106b06a8999e332412ff Mon Sep 17 00:00:00 2001 From: Robin Date: Sun, 15 Dec 2024 11:29:23 +0100 Subject: [PATCH 2/2] Fixed Docker Build --- .dockerignore | 1 + Dockerfile | 6 ++++-- apps/singularity-api/webpack.config.js | 28 ++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index aa44499..089147f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,3 @@ node_modules songs +.nx diff --git a/Dockerfile b/Dockerfile index 37239db..5ebd0a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,6 +34,8 @@ RUN npm install RUN npm run build-backend && npm run build-frontend RUN cp -r dist/apps/singularity-client dist/apps/singularity-api/static -FROM node:19.2.0 +FROM node:20.3.0 COPY --from=build /usr/src/app/dist/apps/singularity-api /usr/src/app -CMD node /usr/src/app/main.js +WORKDIR /usr/src/app +RUN npm install +CMD node main.js diff --git a/apps/singularity-api/webpack.config.js b/apps/singularity-api/webpack.config.js index 0196d5c..c18e57e 100644 --- a/apps/singularity-api/webpack.config.js +++ b/apps/singularity-api/webpack.config.js @@ -15,6 +15,34 @@ module.exports = { assets: ["./src/assets", "./src/config"], optimization: false, outputHashing: 'none', + externalDependencies: [ + "react-native-sqlite-storage", + "@google-cloud/spanner", + "mongodb", + "@sap/hana-client", + "hdb-pool", + "mysql", + "oracledb", + "pg", + "pg-native", + "pg-query-stream", + "typeorm-aurora-data-api-driver", + "redis", + "ioredis", + "better-sqlite3", + "sqlite3", + "sql.js", + "mssql", + "react-native-sqlite-storage", + "cache-manager", + "class-validator", + "class-transformer", + "@nestjs/websockets/socket-module", + "@nestjs/microservices/microservices-module", + "@nestjs/microservices", + "sharp" + ], + generatePackageJson: true }) ], };