Fix devcontainer
But this is still failing with permission denied in some cases.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM mcr.microsoft.com/devcontainers/base:ubuntu-22.04
|
||||
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
|
||||
|
||||
USER vscode
|
||||
|
||||
@@ -7,3 +7,6 @@ ARG HOME="/home/vscode"
|
||||
ENV VOLTA_HOME="${HOME}/.volta"
|
||||
ENV PATH="${VOLTA_HOME}/bin:${PATH}"
|
||||
RUN bash -c "$(curl -fsSL https://get.volta.sh)" -- --skip-setup
|
||||
|
||||
ENTRYPOINT ["/usr/local/share/docker-init.sh"]
|
||||
CMD ["sleep", "infinity"]
|
||||
|
||||
@@ -4,12 +4,10 @@
|
||||
"service": "dev",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
|
||||
"moby": false,
|
||||
"dockerDashComposeVersion": "v2"
|
||||
"moby": false
|
||||
}
|
||||
},
|
||||
"workspaceFolder": "${localWorkspaceFolder}",
|
||||
"shutdownAction": "stopCompose",
|
||||
"forwardPorts": [10001, "hass:8123", "frigate:5000"],
|
||||
"portsAttributes": {
|
||||
"10001": {
|
||||
@@ -25,8 +23,8 @@
|
||||
"onAutoForward": "silent"
|
||||
}
|
||||
},
|
||||
"initializeCommand": ".devcontainer/initialize.sh",
|
||||
"postCreateCommand": "yarn install",
|
||||
"initializeCommand": [".devcontainer/initialize.sh"],
|
||||
"postCreateCommand": ["yarn", "install"],
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
|
||||
+4
-3
@@ -2,9 +2,10 @@
|
||||
services:
|
||||
dev:
|
||||
init: true
|
||||
build: .devcontainer
|
||||
entrypoint: /usr/local/share/docker-init.sh
|
||||
command: sleep infinity
|
||||
build:
|
||||
context: .
|
||||
dockerfile: .devcontainer/Dockerfile
|
||||
network_mode: host
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user