first commit
This commit is contained in:
20
.devcontainer/Dockerfile
Normal file
20
.devcontainer/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM docker:dind
|
||||
|
||||
ARG USERNAME=vscode
|
||||
ARG USER_UID=1000
|
||||
ARG USER_GID=$USER_UID
|
||||
|
||||
RUN apk add --no-cache \
|
||||
curl \
|
||||
bash \
|
||||
build-base \
|
||||
openssl-dev \
|
||||
&& addgroup -g ${USER_GID} ${USERNAME} \
|
||||
&& adduser -D -u ${USER_UID} -G ${USERNAME} -s /bin/bash ${USERNAME} \
|
||||
&& addgroup ${USERNAME} docker
|
||||
|
||||
USER ${USERNAME}
|
||||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
|
||||
|
||||
USER root
|
||||
CMD ["/usr/local/bin/dockerd-entrypoint.sh"]
|
||||
21
.devcontainer/devcontainer.json
Normal file
21
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "Docker DinD + Rust",
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile"
|
||||
},
|
||||
"runArgs": [
|
||||
"--privileged"
|
||||
],
|
||||
"overrideCommand": false,
|
||||
"remoteUser": "vscode",
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"rust-lang.rust-analyzer",
|
||||
"fill-labs.dependi",
|
||||
"tamasfe.even-better-toml"
|
||||
],
|
||||
"settings": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user