Skip to content
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

Optimize Docker Build Process and Provide an Universal Docker Image #605

Open
gaoliang opened this issue Jan 25, 2024 · 3 comments
Open

Comments

@gaoliang
Copy link

The current Docker build process in the documentation appears less than elegant. Each application requires a separate build, and certain parameters are hardcoded during the build, making it inconvenient and verbose.

Proposed Improvement:

  1. Create a universal Dockerfile that retrieves application names and keys through environment variables.

  2. Provide official DockerHub images and a supported list of environment variable parameters, facilitating users to deploy quickly through Docker Compose.

@gaoliang gaoliang changed the title Optimize Docker Build Process and Unify Images Optimize Docker Build Process and Provide an Universal Docker Image Jan 25, 2024
@gaoliang
Copy link
Author

For example, at present, the Taobao NPM registry certificate has expired, resulting in a failure to build the Dockerfile. The build process has become overly complex for many users.

 > [develop-node 5/5] RUN npm config set registry https://registry.npm.taobao.org   &&npm install -g corepack   &&corepack enable   &&pnpm install:
71.42 npm ERR! code CERT_HAS_EXPIRED
71.42 npm ERR! errno CERT_HAS_EXPIRED

@yihong0618
Copy link
Owner

Sounds great, do you want to open a PR to improve it?

@gaoliang
Copy link
Author

Sounds great, do you want to open a PR to improve it?

WIP, I will create a pull request

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

No branches or pull requests

2 participants