Enhance performance and error handling in the application

- Optimize release profile settings in Cargo.toml
- Update Dockerfile to include additional binary
- Modify compose.yml to adjust database URL for read/write mode
- Improve error handling in API calls within api.ts
- Refactor character properties in types.ts for clarity
- Update Card component to reflect new character properties
- Revise utility functions for better episode handling
This commit is contained in:
2025-07-20 15:15:30 +02:00
parent 27e9119123
commit c5de84c013
9 changed files with 95 additions and 75 deletions

View File

@@ -20,6 +20,7 @@ WORKDIR /app
RUN apt-get update && apt-get install -y ca-certificates openssl sqlite3 && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /app/data
COPY --from=backend-builder /app/target/release/rick-and-morty .
COPY --from=backend-builder /app/target/release/fetch_characters .
COPY --from=backend-builder /app/migrations ./migrations
COPY --from=frontend-builder /app/dist ./frontend/dist
EXPOSE 8000