diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..7cf461b --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,8 @@ +FROM rust:1-buster + +COPY Makefile /tmp/Makefile + +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y curl \ + python3 python3-pip nodejs npm make gcc + +RUN make -f /tmp/Makefile dependencies diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 56a1591..cbeae91 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,16 +3,11 @@ { "name": "Dev Container", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/rust:0-1-bullseye", - // Features to add to the dev container. More info: https://containers.dev/features. - "features": { - "ghcr.io/devcontainers/features/rust:1": {}, - "ghcr.io/devcontainers/features/python:1": {}, - "ghcr.io/devcontainers/features/node:1": {}, - "ghcr.io/rocker-org/devcontainer-features/apt-packages:1": { - "packages": "make,gcc" - } + "build": { + "dockerfile": "Dockerfile", + "context": ".." }, + // Features to add to the dev container. More info: https://containers.dev/features. // Use 'forwardPorts' to make a list of ports inside the container available locally. "forwardPorts": [ 5173