- 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:
parent
20e914c85b
commit
3b99c79495
3 changed files with 15 additions and 7 deletions
|
|
@ -75,10 +75,13 @@ RUN apt-get update && apt-get install -y \
|
||||||
|
|
||||||
COPY --from=install /temp/prod/node_modules node_modules
|
COPY --from=install /temp/prod/node_modules node_modules
|
||||||
COPY --from=prerelease /app/public/generated.css /app/public/
|
COPY --from=prerelease /app/public/generated.css /app/public/
|
||||||
COPY . .
|
COPY --from=prerelease /app/dist /app/dist
|
||||||
|
|
||||||
|
# COPY . .
|
||||||
|
RUN mkdir data
|
||||||
|
|
||||||
EXPOSE 3000/tcp
|
EXPOSE 3000/tcp
|
||||||
# used for calibre
|
# used for calibre
|
||||||
ENV QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox"
|
ENV QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox"
|
||||||
ENV NODE_ENV=production
|
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": "run-p 'format:*'",
|
||||||
"format:eslint": "eslint --fix .",
|
"format:eslint": "eslint --fix .",
|
||||||
"format:prettier": "prettier --write .",
|
"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": "run-p 'lint:*'",
|
||||||
"lint:tsc": "tsc --noEmit",
|
"lint:tsc": "tsc --noEmit",
|
||||||
"lint:knip": "knip",
|
"lint:knip": "knip",
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,9 @@
|
||||||
"target": "ES2021",
|
"target": "ES2021",
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"moduleDetection": "force",
|
"moduleDetection": "force",
|
||||||
"allowImportingTsExtensions": true,
|
// "allowImportingTsExtensions": true,
|
||||||
"noEmit": true,
|
"outDir": "dist",
|
||||||
|
"noEmit": false,
|
||||||
"composite": true,
|
"composite": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"downlevelIteration": true,
|
"downlevelIteration": true,
|
||||||
|
|
@ -24,7 +25,10 @@
|
||||||
// "noUnusedParameters": true,
|
// "noUnusedParameters": true,
|
||||||
"exactOptionalPropertyTypes": true,
|
"exactOptionalPropertyTypes": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"noImplicitOverride": true
|
"noImplicitOverride": true,
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"esModuleInterop": true
|
||||||
// "noImplicitReturns": true
|
// "noImplicitReturns": true
|
||||||
}
|
},
|
||||||
|
"include": ["src", "package.json"]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue