- 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:
Vikramjit Borah 2025-07-10 21:43:56 +05:30
parent 20e914c85b
commit 3b99c79495
3 changed files with 15 additions and 7 deletions

View file

@ -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" ]