Revert "fix: make the CDN build correctly"

This reverts commit 79aae987fd.
This commit is contained in:
Flam3rboy
2021-10-18 14:38:34 +02:00
parent 435e67b7a9
commit dc22db6902
8 changed files with 5586 additions and 5669 deletions
+7 -14
View File
@@ -1,14 +1,7 @@
FROM node:lts-alpine AS builder
WORKDIR /usr/src/util
COPY util .
RUN npm install && npm run build
WORKDIR /usr/src/cdn
COPY cdn/ .
RUN npm install && npm run build
EXPOSE 3001
CMD ["node", "dist/start.js"]
FROM node:lts-alpine
WORKDIR /usr/src/fosscord-cdn
COPY package.json .
RUN npm install
COPY . .
EXPOSE 3003
CMD ["node", "dist/"]
+1 -1
View File
@@ -10098,4 +10098,4 @@
"integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w=="
}
}
}
}
+1 -1
View File
@@ -64,4 +64,4 @@
],
"verbose": true
}
}
}
+4 -4
View File
@@ -5,9 +5,9 @@
/* Basic Options */
"incremental": true /* Enable incremental compilation */,
"target": "ES2020" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
"target": "ES6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
"lib": ["ES2020", "dom"] /* Specify library files to be included in the compilation. */,
"lib": ["ES2015", "dom"] /* Specify library files to be included in the compilation. */,
"allowJs": true /* Allow javascript files to be compiled. */,
"checkJs": true /* Report errors in .js files. */,
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
@@ -60,8 +60,8 @@
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
/* Experimental Options */
"experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
"emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
/* Advanced Options */
"skipLibCheck": true /* Skip type checking of declaration files. */,