From 8a7aac20d787ae1c9b50f3af137dedfe2080895d Mon Sep 17 00:00:00 2001 From: bkbilly Date: Thu, 11 Apr 2024 06:10:23 +0300 Subject: [PATCH] Support for docker on other platforms --- .github/workflows/docker-publish.yml | 2 +- Dockerfile | 7 ++----- pyproject.toml | 1 - 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 72a0ef7..e7c2505 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -62,6 +62,6 @@ jobs: with: context: . push: true - platforms: linux/amd64,linux/arm64/v8,linux/arm/v7,linux/arm64 + platforms: linux/amd64,linux/arm64/v8,linux/arm/v7,linux/arm64,linux/386 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/Dockerfile b/Dockerfile index 534af7a..f210dd8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,6 @@ -FROM python:3.9-slim +FROM python:3.9-slim-buster -RUN apt update && apt install -y gcc libssl-dev libffi-dev -RUN curl https://sh.rustup.rs -sSf | sh -RUN pip3 install -U pip -RUN pip3 install --no-cache-dir cryptography +RUN apt update && apt install -y gcc WORKDIR /opt/lnxlink diff --git a/pyproject.toml b/pyproject.toml index 2428c4e..04a5294 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,6 @@ dependencies = [ "PyYAML>=5.3.1", "paho-mqtt>=1.5.1", "requests>=2.28.1", - "pyOpenSSL>=22.1.0", "jc>=1.23.0", "psutil>=5.8.0" ]