-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Update Dockerfile #1605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Dockerfile #1605
Conversation
Reviewer's GuideRefactors and enhances the Dockerfile by adding dos2unix support, introducing build and runtime environment variables, optimizing file copy and install steps, integrating Docker scripts (.env generation and database setup), and adjusting final-stage .env and entrypoint handling. Flow diagram for .env file handling in Docker build and runtimeflowchart LR
subgraph Build Stage
A[Generate .env with build-time ENV vars]
B[Use .env for DB generation and build]
end
subgraph Final Stage
C[Create empty .env file]
D[Runtime ENV vars provided by Railway or environment]
end
A --> B
C --> D
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
your modifications its already old, have a new version of evolution api 2.3.0, and u cant put postgres by default, because have mysql and postgres option, even the credentials. And another thing, u are creating that thinking only in railway... |
@sourcery-ai review |
Hi @dpaes! 👋 Only authors and team members can run @sourcery-ai commands on public repos. |
Summary by Sourcery
Revise Dockerfile to improve build reproducibility, environment management, and image size
Enhancements:
Build: