mirror of
https://github.com/C4illin/ConvertX.git
synced 2026-06-27 22:45:48 +00:00
- Update ENTRYPOINT to run dist/src/index.js instead of dist/index.js
- Ensure /data directory exists for SQLite database creation - Remove unnecessary config files from final image
This commit is contained in:
@@ -75,10 +75,13 @@ RUN apt-get update && apt-get install -y \
|
||||
|
||||
COPY --from=install /temp/prod/node_modules node_modules
|
||||
COPY --from=prerelease /app/public/generated.css /app/public/
|
||||
COPY . .
|
||||
COPY --from=prerelease /app/dist /app/dist
|
||||
|
||||
# COPY . .
|
||||
RUN mkdir data
|
||||
|
||||
EXPOSE 3000/tcp
|
||||
# used for calibre
|
||||
ENV QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox"
|
||||
ENV NODE_ENV=production
|
||||
ENTRYPOINT [ "bun", "run", "./src/index.tsx" ]
|
||||
ENTRYPOINT [ "bun", "run", "dist/src/index.js" ]
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
"format": "run-p 'format:*'",
|
||||
"format:eslint": "eslint --fix .",
|
||||
"format:prettier": "prettier --write .",
|
||||
"build": "bun x @tailwindcss/cli -i ./src/main.css -o ./public/generated.css",
|
||||
"build:js": "tsc",
|
||||
"build": "bun x @tailwindcss/cli -i ./src/main.css -o ./public/generated.css && bun run build:js",
|
||||
"lint": "run-p 'lint:*'",
|
||||
"lint:tsc": "tsc --noEmit",
|
||||
"lint:knip": "knip",
|
||||
|
||||
@@ -5,8 +5,9 @@
|
||||
"target": "ES2021",
|
||||
"moduleResolution": "bundler",
|
||||
"moduleDetection": "force",
|
||||
"allowImportingTsExtensions": true,
|
||||
"noEmit": true,
|
||||
// "allowImportingTsExtensions": true,
|
||||
"outDir": "dist",
|
||||
"noEmit": false,
|
||||
"composite": true,
|
||||
"strict": true,
|
||||
"downlevelIteration": true,
|
||||
@@ -24,7 +25,10 @@
|
||||
// "noUnusedParameters": true,
|
||||
"exactOptionalPropertyTypes": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noImplicitOverride": true
|
||||
"noImplicitOverride": true,
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true
|
||||
// "noImplicitReturns": true
|
||||
}
|
||||
},
|
||||
"include": ["src", "package.json"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user