Optimize docker build and update package

pull/244/head
Uruk 1 year ago
parent 0a652227a3
commit e4602f9e79

@ -1,10 +1,11 @@
# ass Dockerfile v0.3.2 # ass Dockerfile v0.3.3
# authors: # authors:
# - tycrek <t@tycrek.com> (https://tycrek.com/) # - tycrek <t@tycrek.com> (https://tycrek.com/)
# - Zusier <zusier@pm.me> (https://github.com/Zusier) # - Zusier <zusier@pm.me> (https://github.com/Zusier)
FROM node:20.8.0 FROM node:20.9.0-alpine
WORKDIR /opt/ass-src/ WORKDIR /opt/ass-src/
COPY . ./ COPY . ./
RUN npm i --save-dev && npm run build RUN npm i --save-dev && npm run build
CMD npm start CMD npm start
RUN rm -rf /var/cache/apk/*

@ -1,5 +1,5 @@
{ {
"extends": "@tsconfig/node18/tsconfig.json", "extends": "@tsconfig/node20/tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../dist-backend", "outDir": "../dist-backend",
"strictPropertyInitialization": false "strictPropertyInitialization": false

@ -0,0 +1,7 @@
.github
.gitignore
.dockerignore
.install
Dockerfile
compose.yaml
node_modules/

@ -1,5 +1,5 @@
{ {
"extends": "@tsconfig/node18/tsconfig.json", "extends": "@tsconfig/node20/tsconfig.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../dist-frontend", "outDir": "../dist-frontend",
"lib": [ "lib": [

1480
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -4,8 +4,8 @@
"description": "The simple self-hosted ShareX server", "description": "The simple self-hosted ShareX server",
"main": "dist-backend/app.js", "main": "dist-backend/app.js",
"engines": { "engines": {
"node": ">=20.8.0", "node": ">=20.9.0",
"npm": ">=10.1.0" "npm": ">=10.2.1"
}, },
"scripts": { "scripts": {
"dev": "npm run build && npm start", "dev": "npm run build && npm start",
@ -28,12 +28,12 @@
"bugs": "https://github.com/tycrek/ass/issues", "bugs": "https://github.com/tycrek/ass/issues",
"homepage": "https://github.com/tycrek/ass#readme", "homepage": "https://github.com/tycrek/ass#readme",
"dependencies": { "dependencies": {
"@aws-sdk/client-s3": "^3.421.0", "@aws-sdk/client-s3": "^3.436.0",
"@shoelace-style/shoelace": "^2.9.0", "@shoelace-style/shoelace": "^2.11.2",
"@tinycreek/postcss-font-magician": "^4.1.0", "@tinycreek/postcss-font-magician": "^4.2.0",
"@tsconfig/node18": "^18.2.2", "@tsconfig/node20": "^20.1.2",
"@tycrek/discord-hookr": "^0.1.0", "@tycrek/discord-hookr": "^0.1.0",
"@tycrek/express-postcss": "^0.4.0", "@tycrek/express-postcss": "^0.4.1",
"@tycrek/joint": "^1.0.0-1", "@tycrek/joint": "^1.0.0-1",
"@tycrek/log": "^0.7.5", "@tycrek/log": "^0.7.5",
"@tycrek/papito": "^0.3.4", "@tycrek/papito": "^0.3.4",
@ -50,29 +50,29 @@
"ffmpeg-static": "^5.2.0", "ffmpeg-static": "^5.2.0",
"fs-extra": "^11.1.1", "fs-extra": "^11.1.1",
"luxon": "^3.4.3", "luxon": "^3.4.3",
"mysql2": "^3.6.1", "mysql2": "^3.6.2",
"node-fetch": "^2.6.7", "node-fetch": "^2.7.0",
"node-vibrant": "^3.1.6", "node-vibrant": "^3.1.6",
"pug": "^3.0.2", "pug": "^3.0.2",
"sanitize-filename": "^1.6.3", "sanitize-filename": "^1.6.3",
"sharp": "^0.32.6", "sharp": "^0.32.6",
"shoelace-fontawesome-pug": "^6.4.2", "shoelace-fontawesome-pug": "^6.4.3",
"shoelace-pug-loader": "^2.9.2", "shoelace-pug-loader": "^2.11.0",
"tailwindcss": "^3.3.3", "tailwindcss": "^3.3.5",
"typescript": "^5.2.2", "typescript": "^5.2.2",
"uuid": "^8.3.2" "uuid": "^8.3.2"
}, },
"devDependencies": { "devDependencies": {
"@types/bcrypt": "^5.0.0", "@types/bcrypt": "^5.0.1",
"@types/express": "^4.17.18", "@types/express": "^4.17.20",
"@types/express-busboy": "^8.0.1", "@types/express-busboy": "^8.0.2",
"@types/ffmpeg-static": "^3.0.1", "@types/ffmpeg-static": "^3.0.2",
"@types/fs-extra": "^9.0.13", "@types/fs-extra": "^9.0.13",
"@types/luxon": "^3.3.2", "@types/luxon": "^3.3.3",
"@types/node": "^18.16.19", "@types/node": "^20.8.9",
"@types/node-fetch": "^2.6.6", "@types/node-fetch": "^2.6.7",
"@types/sharp": "^0.32.0", "@types/sharp": "^0.32.0",
"@types/tailwindcss": "^3.1.0", "@types/tailwindcss": "^3.1.0",
"@types/uuid": "^8.3.1" "@types/uuid": "^8.3.4"
} }
} }

Loading…
Cancel
Save