FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Docker said build succeeded. Image was 4GB.
How-ToProgramming Languages

Docker said build succeeded. Image was 4GB.

via Dev.to PythonNico Reyes2h ago

Built a scraper container last week. Docker said build succeeded. Pushed it to the registry. Tried pulling it on the server. 4.2GB download started. My internet peaked at 2MB/s. That's 35 minutes of waiting every single deploy. The dumb mistake Threw everything in the Dockerfile: FROM python:3.11 COPY . /app WORKDIR /app RUN pip install -r requirements.txt CMD ["python", "scraper.py"] Simple right? Worked locally. Build succeeded. Containerized my scraper. Except python:3.11 is the full Debian image. 1GB base. Includes compilers, build tools, stuff I never touched. Then I copied my entire project folder. That included old test data (400MB), scraped results from local runs (800MB), node_modules from when I tested a JS library once (600MB), venv folder (200MB). COPY . grabbed everything. Docker doesn't ignore files like git does. Then pip installed requests, beautifulsoup4, and selenium. Selenium pulled chromium. Another 500MB. Fun times. Fixing it Switched to python:3.11-slim first. Sam

Continue reading on Dev.to Python

Opens in a new tab

Read Full Article
0 views

Related Articles

The Real Cost of Abstractions in .NET
How-To

The Real Cost of Abstractions in .NET

Medium Programming • 14m ago

Stop Learning Frameworks — You’re Wasting Your Time
How-To

Stop Learning Frameworks — You’re Wasting Your Time

Medium Programming • 1h ago

How to Self-Host n8n in 2026: VPS vs Managed Hosting (Full Comparison)
How-To

How to Self-Host n8n in 2026: VPS vs Managed Hosting (Full Comparison)

Dev.to • 1h ago

I Built a Mac App to Fix Android File Transfer — Here’s What I Learned
How-To

I Built a Mac App to Fix Android File Transfer — Here’s What I Learned

Medium Programming • 1h ago

How-To

What I learned about X-HEEP by Benchmarking

Medium Programming • 3h ago

Discover More Articles