Skip to content

Commit 33c0840

Browse files
authored
Merge pull request #24 from Singularity-Game/development
Development
2 parents 381908f + 2e159d5 commit 33c0840

File tree

3 files changed

+34
-3
lines changed

3 files changed

+34
-3
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
songs
3+
.nx

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RUN apt-get update && \
1111

1212
ENV SSL_VERSION=1.0.2o
1313

14-
RUN curl https://www.openssl.org/source/openssl-$SSL_VERSION.tar.gz -O && \
14+
RUN wget https://github.com/openssl/openssl/releases/download/OpenSSL_1_0_2o/openssl-$SSL_VERSION.tar.gz && \
1515
tar -xzf openssl-$SSL_VERSION.tar.gz && \
1616
cd openssl-$SSL_VERSION && ./config && make depend && make install && \
1717
cd .. && rm -rf openssl-$SSL_VERSION*
@@ -34,6 +34,8 @@ RUN npm install
3434
RUN npm run build-backend && npm run build-frontend
3535
RUN cp -r dist/apps/singularity-client dist/apps/singularity-api/static
3636

37-
FROM node:19.2.0
37+
FROM node:20.3.0
3838
COPY --from=build /usr/src/app/dist/apps/singularity-api /usr/src/app
39-
CMD node /usr/src/app/main.js
39+
WORKDIR /usr/src/app
40+
RUN npm install
41+
CMD node main.js

apps/singularity-api/webpack.config.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,34 @@ module.exports = {
1515
assets: ["./src/assets", "./src/config"],
1616
optimization: false,
1717
outputHashing: 'none',
18+
externalDependencies: [
19+
"react-native-sqlite-storage",
20+
"@google-cloud/spanner",
21+
"mongodb",
22+
"@sap/hana-client",
23+
"hdb-pool",
24+
"mysql",
25+
"oracledb",
26+
"pg",
27+
"pg-native",
28+
"pg-query-stream",
29+
"typeorm-aurora-data-api-driver",
30+
"redis",
31+
"ioredis",
32+
"better-sqlite3",
33+
"sqlite3",
34+
"sql.js",
35+
"mssql",
36+
"react-native-sqlite-storage",
37+
"cache-manager",
38+
"class-validator",
39+
"class-transformer",
40+
"@nestjs/websockets/socket-module",
41+
"@nestjs/microservices/microservices-module",
42+
"@nestjs/microservices",
43+
"sharp"
44+
],
45+
generatePackageJson: true
1846
})
1947
],
2048
};

0 commit comments

Comments
 (0)