Skip to content

How to use Quarto with python:3.13.3-alpine image #12872

Discussion options

You must be logged in to vote

Figured it out (in parallel to my work^^):

FROM gcr.io/distroless/cc AS cc

FROM python:3.13-alpine3.22

COPY --from=cc --chown=root:root --chmod=755 /lib/*-linux-gnu/* /usr/local/lib/
COPY --from=cc --chown=root:root --chmod=755 /lib/ld-linux-* /lib/

RUN mkdir /lib64 && ln -s /usr/local/lib/ld-linux-* /lib64/

ENV LD_LIBRARY_PATH="/usr/local/lib"

# Install necessary packages: curl, unzip, bash, and shadow for useradd
RUN apk update && apk add --no-cache \
    curl \
    unzip \
    bash \
    shadow \
    build-base \
    libffi-dev \
    openssl-dev \
    pkgconf \
    cmake \
    && rm -rf /var/cache/apk/* \
    && rm -rf /tmp/*

# Install rustup and latest Rust toolchain
RUN curl ht…

Replies: 1 comment 21 replies

Comment options

You must be logged in to vote
21 replies
@mcanouil
Comment options

mcanouil Jun 3, 2025
Collaborator

@mcanouil

This comment has been hidden.

@cderv
Comment options

cderv Jun 3, 2025
Maintainer

@mcanouil
Comment options

mcanouil Jun 3, 2025
Collaborator

Answer selected by girirajguptagithub
@mcanouil
Comment options

mcanouil Jun 3, 2025
Collaborator

@girirajguptagithub
Comment options

@mcanouil
Comment options

mcanouil Jun 3, 2025
Collaborator

@girirajguptagithub
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants