Skip to content

Commit

Permalink
Pin version and shrink image size
Browse files Browse the repository at this point in the history
  • Loading branch information
madereddy committed Nov 14, 2023
1 parent 80cdfac commit 8d6f753
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM cgr.dev/chainguard/python:latest-dev as builder
FROM cgr.dev/chainguard/python:latest-dev@sha256:b462e3e5a572225ed3d89e92c6eee6a41ba4bd2058612130494979f9bdab162f as builder
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt --user
FROM cgr.dev/chainguard/python:latest
RUN pip install --no-cache-dir -r requirements.txt --user
FROM cgr.dev/chainguard/python:latest@sha256:14b01460efdfb42b298cbb31807ed235d2661bfe576b849fce59614818302301
WORKDIR /app

# Make sure you update Python version in path
Expand Down

0 comments on commit 8d6f753

Please sign in to comment.