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

Optimizing Docker Image #1247

Open
rahulsurwade08 opened this issue Mar 12, 2024 · 0 comments
Open

Optimizing Docker Image #1247

rahulsurwade08 opened this issue Mar 12, 2024 · 0 comments

Comments

@rahulsurwade08
Copy link
Contributor

rahulsurwade08 commented Mar 12, 2024

Hey, I went over the Dockerfile and could propose some changes -

  1. Replace root user
  2. Add Multistage Build
  3. Clean Up After Installing Packages
  4. Replace latest tag of kalilinux/kali-rolling
  5. Update .dockerignore file

@viyatb @7a Let's discuss this further

Expected Behavior

  1. Container should run without root user
  2. Reduce Docker Image Size

Current Behavior

  1. Container is running as root
  2. Docker Image size is around 8GB

Possible Solution

  1. Add line USER appuser in Dockerfile
  2. Add rm -rf /var/lib/apt/lists/*in the cleanup
  3. Reduce the scope of ADD . /owtf
    owtf-filels

Context

  1. I am trying to implement some security measures and reduce the container size
  2. These changes help us by utilizing less space and easy deployments on CSPs

Your Environment

  • Installation method used: Docker-Compose
  • Version/branch used: developer
  • Operating System and version (like Kali, Debian, ArchLinux, etc): Kali
  • pip/setuptools version: 24.0
  • sudo access: Yes
rahulsurwade08 added a commit to rahulsurwade08/owtf that referenced this issue Mar 16, 2024
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

1 participant