build: adding debugging to dev container

This commit is contained in:
Andrew Rioux
2023-05-04 18:45:42 -04:00
parent 978d7cb089
commit 0fe2c033b3
5 changed files with 59 additions and 8 deletions

View File

@@ -13,10 +13,17 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
FROM rust:1-alpine
FROM rust:1-buster
RUN apk add bash docker git cmake make automake musl-dev autoconf libtool valgrind \
flex bison linux-headers openssl-dev apache2-utils docker-compose && \
ENV DEBIAN_FRONTEND=noninteractive
#apk add musl-dev openssl-dev docker-compose lldb && \
RUN apt update && \
apt install -y git cmake make automake autoconf libtool valgrind flex \
linux-headers-5.10 bison docker-compose lldb libssl-dev libnl-3-dev sudo && \
rustup component add clippy && \
mkdir /etc/docker && \
echo '{ "storage-driver": "vfs" }' > /etc/docker/daemon.json
rustup target add x86_64-unknown-linux-musl && \
useradd vscode && \
mkdir -p /home/vscode && \
chown -R vscode:vscode /home/vscode && \
echo "vscode ALL=(ALL: ALL) NOPASSWD: ALL" >> /etc/sudoers