Skip to content

Dockerfile.builder for Python SDK #5940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
yuhr123 opened this issue Apr 9, 2025 · 0 comments
Open

Dockerfile.builder for Python SDK #5940

yuhr123 opened this issue Apr 9, 2025 · 0 comments
Assignees
Labels
kind/feature New feature or request

Comments

@yuhr123
Copy link
Contributor

yuhr123 commented Apr 9, 2025

What would you like to be added:

juicefs/sdk/python/Dockerfile.builder

The current version is:

FROM centos/python-38-centos7

USER 0

RUN curl -fsSL https://autoinstall.plesk.com/PSA_18.0.62/examiners/repository_check.sh | bash -s -- update >/dev/null && \
    yum install -y make gcc && \
    cd /tmp && \
    curl -L https://static.juicefs.com/misc/go1.20.14.linux-amd64.tar.gz -o go1.20.14.linux-amd64.tar.gz && \
    tar -C /usr/local -xzf go1.20.14.linux-amd64.tar.gz && \
    rm go1.20.14.linux-amd64.tar.gz && \
    ln -s /usr/local/go/bin/go /usr/bin/go && \
    python3 -m pip install --upgrade pip && \
    python3 -m pip install --upgrade setuptools && \
    pip install wheel build

The version I suggest is:

FROM golang:1.24

RUN apt update && \
    apt install -y --no-install-recommends \
        git \
        make \
        gcc \
        python3 \
        python3-pip \
        python3-setuptools \
        python3-wheel \
        python3-build \
        python3-venv \
        ca-certificates \
    && \
    apt clean && \
    rm -rf /var/lib/apt/lists/*

There is a repository_check.sh script in the old file, I am not sure if it must be keep?

@yuhr123 yuhr123 added the kind/feature New feature or request label Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants