Skip to content

Commit

Permalink
Install gcc for slim docker to build rpi.gpio on demand (#368)
Browse files Browse the repository at this point in the history
* Install gcc for slim docker to build rpi.gpio on demand
* # Fix for poetry/docutils related bug (#367) (#369) see python-poetry/poetry#9293
  • Loading branch information
BenjiU authored Jun 19, 2024
1 parent 98bb92e commit 3eee9a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ RUN pip install --no-cache-dir poetry && \

FROM base

# Install gcc so packages installed durring runtime may be build
RUN apt-get update && apt-get install -y gcc && gcc --version

RUN useradd -m -s /bin/bash mqtt_io
USER mqtt_io
WORKDIR /home/mqtt_io
Expand All @@ -43,5 +46,6 @@ RUN venv/bin/python -m pip install --no-cache-dir --upgrade pip
RUN venv/bin/pip install --no-cache-dir -r requirements.txt

COPY --chown=mqtt_io mqtt_io mqtt_io
RUN gcc --version

CMD [ "venv/bin/python", "-m", "mqtt_io", "/config.yml" ]

0 comments on commit 3eee9a1

Please sign in to comment.