Skip to content

Fix/reduced docker image size#1

Open
felixivance wants to merge 2 commits intokadimasum:mainfrom
felixivance:fix/reduced-docker-image-size
Open

Fix/reduced docker image size#1
felixivance wants to merge 2 commits intokadimasum:mainfrom
felixivance:fix/reduced-docker-image-size

Conversation

@felixivance
Copy link
Copy Markdown

  • used python:3.8.3-alpine as the base image, which is smaller than python:3.8.3-slim.
  • combined the apk add commands to install build tools and dependencies into a single RUN instruction to reduce the number of layers.
  • removed build tools and packages using rm -rf /var/cache/apk/* to clean up the image and reduce its size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant