Skip to content

Commit

Permalink
♻️ Use Docker slim to reduce the time to run in half, from 33s to 16s (
Browse files Browse the repository at this point in the history
  • Loading branch information
tiangolo authored Nov 2, 2023
1 parent 63da46c commit 1830c17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
# TODO: remove this
- slim
release:
types:
- published
Expand Down
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM python:3.10
FROM python:3.10-slim

# Slim doesn't have git, install it manually
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*

COPY ./requirements.txt /app/requirements.txt

Expand Down

0 comments on commit 1830c17

Please sign in to comment.