这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@franzbischoff
Copy link
Contributor

@franzbischoff franzbischoff commented Jan 17, 2024

robustness

Upgraded the base Ubuntu image to the latest version to incorporate current security and package updates. Enhanced Dockerfile by introducing pipefail shell option to ensure any step in a pipe sequence failing will fail the entire pipeline, increasing build reliability. Refactored user creation commands for clarity and consistency and removed unnecessary unzip and git installations. Simplified RUN instructions in the Dockerfile to facilitate maintenance and potential readability. Adjusted the execution permission setting of entrypoint and healthcheck scripts to be more concise.

Normalized quoting and whitespace within RUN commands and shell scripts for consistency across the codebase. Ensured proper ownership of copied files at build time to prevent potential permission issues during container startup. Shifted to WORKDIR instructions for setting the working directory instead of using 'cd' for better readability and Docker best practices.

Resolved missing newline characters at the end of shell scripts which follows common conventions and aids in file concatenation.

These changes contribute to the stabilization and optimization of the Docker build process, which should result in more consistent and reliable builds for the AnythingLLM project.

Pull Request Type

  • ♻️ refactor
  • 💄 style

Relevant Issues

What is in this change?

Describe the changes in this PR that are impactful to the repo.

Additional Information

Add any other context about the Pull Request here that was not captured above.

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

franzbischoff and others added 6 commits January 17, 2024 00:00
robustness

Upgraded the base Ubuntu image to the latest version to incorporate
current security and package updates. Enhanced Dockerfile by introducing
pipefail shell option to ensure any step in a pipe sequence failing will
fail the entire pipeline, increasing build reliability. Refactored user
creation commands for clarity and consistency and removed unnecessary
unzip and git installations. Simplified RUN instructions in the
Dockerfile to facilitate maintenance and potential readability. Adjusted
the execution permission setting of entrypoint and healthcheck scripts
to be more concise.

Normalized quoting and whitespace within RUN commands and shell scripts
for consistency across the codebase. Ensured proper ownership of copied
files at build time to prevent potential permission issues during
container startup. Shifted to WORKDIR instructions for setting the
working directory instead of using 'cd' for better readability and
Docker best practices.

Resolved missing newline characters at the end of shell scripts which
follows common conventions and aids in file concatenation.

These changes contribute to the stabilization and optimization of the
Docker build process, which should result in more consistent and
reliable builds for the AnythingLLM project.
Needed for the arm64 build
@franzbischoff franzbischoff deleted the feature/dockerfile branch January 28, 2024 15:27
@franzbischoff franzbischoff restored the feature/dockerfile branch February 19, 2024 02:17
@franzbischoff franzbischoff reopened this Feb 19, 2024
@franzbischoff
Copy link
Contributor Author

In review, I realized that this was closed and not merged...

@franzbischoff
Copy link
Contributor Author

now it is 100% :)

@franzbischoff
Copy link
Contributor Author

The only conflict shown here is not a conflict, but a fix... may have appeared after the pull request was sent.

@timothycarambat timothycarambat merged commit 9ce3d11 into Mintplex-Labs:master Mar 7, 2024
@franzbischoff franzbischoff deleted the feature/dockerfile branch March 21, 2024 22:49
cabwds pushed a commit to cabwds/anything-llm that referenced this pull request Jul 3, 2025
* Update Ubuntu base image and improve Dockerfile

* Add unzip to Docker image dependencies

Needed for the arm64 build

* reset tabs

* formalized lint rules for hadolint. however the Docker formatting is being handled by MS Docker extension which doesn't indent code as expected. WIP.

* found a workaround to keep formatting

---------

Co-authored-by: timothycarambat <rambat1010@gmail.com>
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