mirror of
https://github.com/SrIzan10/vinci.git
synced 2026-06-06 01:07:00 +00:00
fix: docker builds
This commit is contained in:
4
.dockerignore
Normal file
4
.dockerignore
Normal file
@@ -0,0 +1,4 @@
|
||||
node_modules
|
||||
images
|
||||
.env*
|
||||
dist
|
||||
Binary file not shown.
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user