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

✨ feat: update Dockerfile to improve dependency management and security #633

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gitworkflows
Copy link

  • Changed pnpm install to use --frozen-lockfile to ensure deterministic installs.
  • Updated environment variable names to use consistent casing (e.g., HUGGINGFACE_API_KEY).
  • Fixed development image to create the run directory with proper permissions (chown node:node).
  • Switched to a non-root user (node) in the development image for better security practices.

- Changed `pnpm install` to use `--frozen-lockfile` to ensure deterministic installs.
- Updated environment variable names to use consistent casing (e.g., `HUGGINGFACE_API_KEY`).
- Fixed development image to create the run directory with proper permissions (`chown node:node`).
- Switched to a non-root user (`node`) in the development image for better security practices.
@gitworkflows gitworkflows changed the title feat: update Dockerfile to improve dependency management and security ✨ feat: update Dockerfile to improve dependency management and security Dec 11, 2024
@dustinwloring1988
Copy link
Collaborator

dustinwloring1988 commented Dec 13, 2024

@gitworkflows sorry for the delay i ntesting this but I do see the following permission denied, when testing on Windows 11:
image

CMD pnpm run dev --host
# Create run directory with proper permissions
RUN mkdir -p /app/run && chown node:node /app/run

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

directory was created but files were copied to the /app directory during copy stage. do you need to put this line at the start with a followed by a chdir command?

@leex279
Copy link
Collaborator

leex279 commented Jan 18, 2025

@gitworkflows can you check the last comment from @thecodacus please: #633 (comment)

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.

4 participants