debian docker image
This commit is contained in:
@@ -37,7 +37,9 @@ jobs:
|
||||
PLATFORM="${{ matrix.platform }}"
|
||||
CONTAINER_NAME="builder-${ARCH_NAME//\//-}"
|
||||
FILENAME="HAIERPI-${VERSION}-${ARCH_NAME//\//-}.tar.gz"
|
||||
IMAGE_NAME="${ARCH_NAME}/python:3.9-alpine"
|
||||
#IMAGE_NAME="${ARCH_NAME}/python:3.9-alpine"
|
||||
IMAGE_NAME="${ARCH_NAME}/python:3.9-slim-bullseye"
|
||||
|
||||
|
||||
echo "Start budowania dla architektury: ${ARCH_NAME}"
|
||||
echo "Używany obraz Docker: ${IMAGE_NAME}"
|
||||
@@ -55,7 +57,8 @@ jobs:
|
||||
docker cp requirements.txt "${CONTAINER_NAME}:/opt/haiertest/"
|
||||
|
||||
echo "Instaluję narzędzia deweloperskie w kontenerze Alpine..."
|
||||
docker exec "${CONTAINER_NAME}" /bin/sh -c "apk update && apk add build-base python3-dev gfortran"
|
||||
# docker exec "${CONTAINER_NAME}" /bin/sh -c "apk update && apk add build-base python3-dev gfortran"
|
||||
docker exec "${CONTAINER_NAME}" /bin/sh -c "apt-get update && apt-get install -y build-essential python3-dev"
|
||||
|
||||
echo "Instaluję zależności wewnątrz kontenera..."
|
||||
docker exec "${CONTAINER_NAME}" /bin/sh -c "cd /opt/haiertest && python -m venv env && source env/bin/activate && pip install -r requirements.txt"
|
||||
|
||||
Reference in New Issue
Block a user