diff --git a/cdn/Dockerfile b/cdn/Dockerfile
index 2503240b..d9ad78f4 100644
--- a/cdn/Dockerfile
+++ b/cdn/Dockerfile
@@ -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/"]
\ No newline at end of file
diff --git a/cdn/package-lock.json b/cdn/package-lock.json
index 147264e9..694ba679 100644
--- a/cdn/package-lock.json
+++ b/cdn/package-lock.json
@@ -10098,4 +10098,4 @@
"integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w=="
}
}
-}
\ No newline at end of file
+}
diff --git a/cdn/package.json b/cdn/package.json
index 919fcc29..318f1632 100644
--- a/cdn/package.json
+++ b/cdn/package.json
@@ -64,4 +64,4 @@
],
"verbose": true
}
-}
\ No newline at end of file
+}
diff --git a/cdn/tsconfig.json b/cdn/tsconfig.json
index 4630623d..249dffff 100644
--- a/cdn/tsconfig.json
+++ b/cdn/tsconfig.json
@@ -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. */,
|