Skip to content

Poprawki 2#2

Open
iglak wants to merge 9 commits intoWiktor687:mainfrom
iglak:main
Open

Poprawki 2#2
iglak wants to merge 9 commits intoWiktor687:mainfrom
iglak:main

Conversation

@iglak
Copy link
Copy Markdown

@iglak iglak commented Jun 23, 2025

This pull request introduces improvements to the application's Docker setup, dependency management, and database configuration. The most important changes include creating a multi-stage Dockerfile for optimized builds, adding the morgan logging library as a dependency, and updating the database file path for better organization.

Docker setup improvements:

  • Dockerfile: Created a multi-stage build process to optimize the Docker image. The first stage installs production dependencies and removes unnecessary files, while the second stage creates a lightweight image with the built application.

Dependency management:

  • package.json: Added morgan (a logging middleware) as a dependency to enhance request logging capabilities.

Database configuration:

  • server.js: Updated the database file path from ./users.db to data/users.db to improve file organization within the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants