From 04e83ac3ff5ad7fd071d5bd835e9905e710868b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E5=BE=AE?= <1067852565@qq.com> Date: Fri, 24 Mar 2023 14:16:49 +0000 Subject: [PATCH] update docker file --- .devcontainer/Dockerfile | 2 +- .devcontainer/devcontainer.json | 28 ++-------------------------- 2 files changed, 3 insertions(+), 27 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 874447a..5b2fdc7 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -11,7 +11,7 @@ RUN apt-get update -y && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -RUN wget -nv -O - https://sh.rustup.rs | sh -s -- -y +RUN wget -nv -O - https://sh.rustup.rs | sh -s -- -y && source "$HOME/.cargo/env" && make ENV PATH="/root/.cargo/bin:${PATH}" ENTRYPOINT ["/bin/bash"] \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c80494e..020a99a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,27 +1,3 @@ -// For format details, see https://aka.ms/devcontainer.json. For config options, see the -// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile { - "name": "Existing Dockerfile", - "build": { - // Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename. - "dockerfile": "Dockerfile" - }, - "features": { - "ghcr.io/devcontainers/features/rust:1": {} - } - - // Features to add to the dev container. More info: https://containers.dev/features. - // "features": {}, - - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], - - // Uncomment the next line to run commands after the container is created. - // "postCreateCommand": "cat /etc/os-release", - - // Configure tool-specific properties. - // "customizations": {}, - - // Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root. - // "remoteUser": "devcontainer" -} + "build": { "dockerfile": "Dockerfile" }, +} \ No newline at end of file