Debut
This commit is contained in:
29
PacoMouseCYD/Platformio/.devcontainer/Dockerfile
Normal file
29
PacoMouseCYD/Platformio/.devcontainer/Dockerfile
Normal file
@@ -0,0 +1,29 @@
|
||||
FROM python:3.11
|
||||
|
||||
|
||||
RUN python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py)"
|
||||
|
||||
RUN platformio platforms install atmelavr \
|
||||
--with-package framework-arduinoavr
|
||||
|
||||
RUN platformio platforms install ststm32 \
|
||||
--with-package framework-libopencm3 \
|
||||
--with-package framework-spl \
|
||||
--with-package framework-cmsis \
|
||||
--with-package framework-mbed
|
||||
# Install PlatformIO
|
||||
# RUN pip install platformio
|
||||
|
||||
# Install OpenSSH for remote access
|
||||
RUN apt-get update && apt-get install -y openssh-server && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set up SSH
|
||||
RUN mkdir /var/run/sshd
|
||||
RUN echo 'root:root' | chpasswd
|
||||
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
|
||||
EXPOSE 22
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /workspace
|
||||
|
||||
CMD ["/usr/sbin/sshd", "-D"]
|
||||
Reference in New Issue
Block a user