Skip to content

Commit

Permalink
Update to alpine 3.21 which uses openssl 3
Browse files Browse the repository at this point in the history
  • Loading branch information
emlowe committed Jan 7, 2025
1 parent f029a68 commit f1ef0a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 deletions.
9 changes: 2 additions & 7 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.16.2
FROM alpine:3.21
WORKDIR /root

# Set environment variables for rust and pyenv
Expand All @@ -7,19 +7,14 @@ ENV PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
ENV PATH="/root/.cargo/bin:${PATH}"
ENV RUST_BACKTRACE=1

RUN sh -c "echo https://mirrors.edge.kernel.org/alpine/v3.16.2/community >> /etc/apk/repositories"
RUN apk add bash git curl python3 openssl openssl-dev perl linux-headers make gcc musl-dev patch patchelf
RUN apk add bash git curl python3 openssl openssl-dev perl linux-headers make gcc musl-dev patch patchelf py3-pip
# Additional pyenv dependencies
RUN apk add --no-cache build-base libffi-dev bzip2-dev zlib-dev xz-dev readline-dev sqlite-dev tk-dev

# Install Rust
RUN curl --proto '=https' --tlsv1.2 -sSf -o rustup https://sh.rustup.rs
RUN sh ./rustup -y

# Build a copy of openssl - needed for the rust-openssl crate
COPY build-openssl.sh .
RUN sh ./build-openssl.sh

RUN curl https://pyenv.run | bash && \
PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install --skip-existing 3.8 && \
PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install --skip-existing 3.9 && \
Expand Down
16 changes: 0 additions & 16 deletions alpine/build-openssl.sh

This file was deleted.

0 comments on commit f1ef0a8

Please sign in to comment.