diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index c46b2cd..ed86393 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -44,11 +44,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Prepare id: prepare run: | diff --git a/alpine/Dockerfile b/alpine/Dockerfile index c1cd35c..97c56c9 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -1,10 +1,55 @@ FROM alpine:3.16 # Add global TARGETARCH argument to this stage ARG TARGETARCH +ENV PYTHON_VERSION=3.12.4 LABEL maintainer="Miguel Caballer " LABEL description="Container image to build faas-supervisor in alpine" -#RUN apk add --no-cache nghttp2-libs binutils libexecinfo-dev libcurl zip unzip cmake automake make curl-dev libtool autoconf gcc g++ zlib-dev musl-dev py3-pip python3 python3-dev libxml2-dev libxslt-dev -RUN apk add --no-cache python3 python3-dev autoconf libcurl curl zip unzip cmake make automake curl-dev libtool autoconf gcc g++ libexecinfo-dev +RUN apk add --no-cache \ + build-base \ + libffi-dev \ + zlib-dev \ + bzip2-dev \ + readline-dev \ + ncurses-dev \ + sqlite-dev \ + tk-dev \ + libssl1.1 \ + openssl-dev \ + musl-dev \ + curl \ + git \ + xz-dev \ + make \ + gcc \ + g++ && \ + curl -O https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz && \ + tar -xvzf Python-${PYTHON_VERSION}.tgz && \ + cd Python-${PYTHON_VERSION} && \ + ./configure \ + --prefix=/usr/ \ + --enable-shared \ + --enable-optimizations \ + --enable-ipv6 \ + LDFLAGS=-Wl,-rpath=/usr/lib,--disable-new-dtags && \ + make && \ + make install && \ + rm -rf /Python-${PYTHON_VERSION} && \ + apk del \ + build-base \ + libffi-dev \ + zlib-dev \ + bzip2-dev \ + readline-dev \ + ncurses-dev \ + sqlite-dev \ + tk-dev \ + libssl1.1 \ + openssl-dev \ + musl-dev \ + git \ + xz-dev + +RUN apk add --no-cache autoconf libcurl zip unzip cmake make automake curl-dev libtool autoconf libexecinfo-dev RUN python3 -m ensurepip RUN pip3 --no-cache-dir install --upgrade pip setuptools>=40.8.0 RUN pip3 --no-cache-dir install pyinstaller @@ -12,11 +57,11 @@ RUN pip3 install --no-deps --ignore-installed wheel==0.37.1 RUN apk add --no-cache --virtual .build-deps gcc musl-dev \ && pip3 install cython \ && apk del .build-deps +RUN pip3 --no-cache-dir install awslambdaric==2.0.12 RUN pip3 --no-cache-dir install boto3==1.20.38 \ webdavclient3==3.14.6 \ requests==2.27.1 \ setuptools>=40.8.0 \ wheel==0.37.1 \ pyyaml==6.0.1 \ - awslambdaric==2.0.12 \ rucio-clients==1.31.7