fix: docker builds

This commit is contained in:
2024-09-20 19:37:32 +02:00
parent 8ac9c16945
commit b84260901d
5 changed files with 921 additions and 8 deletions

4
.dockerignore Normal file
View File

@@ -0,0 +1,4 @@
node_modules
images
.env*
dist

Binary file not shown.

View File

@@ -9,11 +9,9 @@ RUN apk add --no-cache --virtual .gyp python3 make g++
COPY . .
RUN corepack enable yarn
RUN yarn set version 4.1.1
RUN yarn
RUN yarn build
RUN yarn cache clean
# Final stage
FROM node:lts-alpine AS final

View File

@@ -8,7 +8,7 @@
"dev": "sern build && node ./dist/index.js --dev",
"prod": "tsc-watch -p \"./tsconfig.json\" --onSuccess \"node ./dist/index.js\"",
"compile": "tsc --build",
"build": "tsc --build",
"build": "sern build",
"web": "node webserver.js",
"watch": "tsc --watch",
"start": "nodemon dist/index.js"
@@ -65,6 +65,7 @@
"systeminformation": "^5.21.7"
},
"devDependencies": {
"@sern/cli": "^1.3.3",
"@types/express": "^4.17.14",
"@types/node": "^20.12.7",
"ts-node": "10.9.1",

920
yarn.lock

File diff suppressed because it is too large Load Diff