This commit is contained in:
2025-12-10 07:47:04 +01:00
parent 99c7ccac16
commit f0b1cf97e2
5 changed files with 1450 additions and 13 deletions

View File

@@ -1,5 +1,14 @@
FROM debian:stable-slim
ARG USERNAME=vscode
ARG USER_UID=1000
ARG USER_GID=1000
RUN groupadd --gid $USER_GID $USERNAME \
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
&& apt-get update && apt-get install -y sudo \
&& echo "$USERNAME ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
RUN RUN set -eux; \
apt-get update; \
apt-get install -y \
@@ -32,7 +41,7 @@ RUN set -eux; \
cmake -DPAHO_WITH_MQTT_C=ON ..; \
cmake --build . --target install; \
ldconfig;
RUN set -eux; \
apt-get update; \
apt-get install -y \
@@ -40,6 +49,7 @@ RUN set -eux; \
librabbitmq-dev;\
apt-get clean
WORKDIR /root
USER $USERNAME
WORKDIR /workspace
CMD ["sleep infinity"]