Skip to content

Commit daf7850

Browse files
committed
Install GCC
1 parent afb231b commit daf7850

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/build_python_mqtt_dev_images.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ jobs:
5454
context: .
5555
platforms: linux/amd64,linux/arm64,linux/arm/v7
5656
push: true
57+
cache-from: type=gha
58+
cache-to: type=gha,mode=max
5759
tags: |
5860
ghcr.io/${{ steps.lowercase-repository.outputs.lowercase }}/saic-mqtt-gateway:dev
5961
ghcr.io/${{ steps.lowercase-repository.outputs.lowercase }}/saic-mqtt-gateway:${{ env.RELEASE_VERSION }}
@@ -65,6 +67,8 @@ jobs:
6567
context: .
6668
platforms: linux/amd64,linux/arm64,linux/arm/v7
6769
push: true
70+
cache-from: type=gha
71+
cache-to: type=gha,mode=max
6872
tags: |
6973
ghcr.io/${{ steps.lowercase-repository.outputs.lowercase }}/saic-mqtt-gateway:dev
7074
ghcr.io/${{ steps.lowercase-repository.outputs.lowercase }}/saic-mqtt-gateway:${{ env.RELEASE_VERSION }}

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ RUN pip install "poetry==${POETRY_VERSION}"
1616

1717
WORKDIR /usr/src/app
1818

19+
# Install gcc and python3-dev for native code
20+
RUN apt-get update \
21+
&& apt-get install -y --no-install-recommends gcc python3-dev \
22+
&& rm -rf /var/lib/apt/lists/*
23+
1924
# --- Reproduce the environment ---
2025
# You can comment the following two lines if you prefer to manually install
2126
# the dependencies from inside the container.

0 commit comments

Comments
 (0)