mirror of
https://github.com/zoriya/flood.git
synced 2026-05-31 18:25:25 +00:00
.devcontainer: use overrideCommand to initialize Docker
This commit is contained in:
@@ -40,6 +40,8 @@ RUN apt install -y \
|
||||
# Configure Docker-from-Docker
|
||||
COPY ./.devcontainer/library-scripts /tmp/library-scripts/
|
||||
RUN /bin/bash /tmp/library-scripts/docker-debian.sh true "/var/run/docker-host.sock" "/var/run/docker.sock" vscode false
|
||||
ENTRYPOINT ["/usr/local/share/docker-init.sh"]
|
||||
CMD ["sleep", "infinity"]
|
||||
|
||||
# Run as vscode user
|
||||
USER vscode
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
"dockerFile": "./Dockerfile",
|
||||
"runArgs": ["--init"],
|
||||
"initializeCommand": "if [ \"${CODESPACES}\" != \"true\" ]; then umask 077 && mkdir -p ~/.docker ~/.gnupg ~/.ssh && umask 177 && touch ~/.git-credentials ~/.npmrc ~/.zsh_history; fi",
|
||||
"postCreateCommand": "npm install && bash /usr/local/share/docker-init.sh",
|
||||
"postCreateCommand": "npm install",
|
||||
"overrideCommand": false,
|
||||
"remoteEnv": {
|
||||
"PATH": "${containerEnv:PATH}:${containerWorkspaceFolder}/node_modules/.bin"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user