Commit 644d54dd authored by Vũ Hoàng Anh's avatar Vũ Hoàng Anh

Enable pip cache in Dockerfile.prod for faster builds

- Remove --no-cache-dir flag from pip install
- Use Docker layer caching for faster production builds
- Manual server rebuilds will auto-update packages if needed
parent d4f864a9
...@@ -9,8 +9,8 @@ WORKDIR /app ...@@ -9,8 +9,8 @@ WORKDIR /app
# Copy requirements.txt # Copy requirements.txt
COPY requirements.txt . COPY requirements.txt .
# Install dependencies to a local directory # Install dependencies to a local directory (with cache for speed)
RUN pip install --user --no-cache-dir -r requirements.txt RUN pip install --user -r requirements.txt
# ============================================================ # ============================================================
# Final stage - Production image (tối giản) # Final stage - Production image (tối giản)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment