summary refs log tree commit diff
path: root/cdn
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-18 14:38:34 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-18 14:38:34 +0200
commitdc22db6902d59ec881f8ef6acf0b6717a475aa8d (patch)
tree3ef14a8d160aeee513b31ded7a0fef1a59ca5c20 /cdn
parentRevert "fix: make API dockerfile use correct setup steps" (diff)
downloadserver-dc22db6902d59ec881f8ef6acf0b6717a475aa8d.tar.xz
Revert "fix: make the CDN build correctly"
This reverts commit 79aae987fd001db4fcd6c5946949ac7840305198.
Diffstat (limited to 'cdn')
-rw-r--r--cdn/Dockerfile21
-rw-r--r--cdn/package-lock.json2
-rw-r--r--cdn/package.json2
-rw-r--r--cdn/tsconfig.json8
4 files changed, 13 insertions, 20 deletions
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. */,