Skip to content
Merged
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
@@ -1,2 +1,3 @@
node_modules
songs
.nx
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand All @@ -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
28 changes: 28 additions & 0 deletions apps/singularity-api/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
],
};
Expand Down
Loading