Skip to content

Question about any idea to reduce the docker image size #65

@jiangyh91

Description

@jiangyh91

Hi, thanks for maintianing this repo up to date.
The docker image size on my server takes 1.29GB, which I am feeling is relatively too big compare with the image's feature.
I am not a expert user of docker, feel free to fix me if I say anything wrong.
From the Dockerfile, I can see few things we can do to reduce the image size.

  1. Switched to alpine:latest for a smaller base image.

FROM alpine:latest or maybe any python ready image?

  1. Combined unnecessary RUN instructions to reduce the number of layers.

RUN apt-get -y install ${PYTHON}-pip && \ apt-get -y install ${PYTHON}-selenium && \ apt-get -y install ${PYTHON}-pyotp && \ apt-get -y install curl wget etc.

What do you think about above ideas? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions