Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
- Fix the version check in the vim file to reject Python 3.8 (#4567)
- Enhance GitHub Action `psf/black` to read Black version from an additional section in
pyproject.toml: `[project.dependency-groups]` (#4606)
- Build gallery docker image with python3-slim and reduce image size (#4686)

### Documentation

Expand Down
7 changes: 4 additions & 3 deletions gallery/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM python:3.8.2-slim
FROM python:3-slim

# note: a single RUN to avoid too many image layers being produced
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install git apt-utils -y \
&& apt-get install git apt-utils -y --no-install-recommends\
&& git config --global user.email "black@psf.github.com" \
&& git config --global user.name "Gallery/Black"
&& git config --global user.name "Gallery/Black" \
&& rm -rf /var/lib/apt/lists/*

COPY gallery.py /
ENTRYPOINT ["python", "/gallery.py"]
Loading