Skip to content

Commit

Permalink
Update devcontainer to use Dockerfile for image build
Browse files Browse the repository at this point in the history
Switch from a pre-built image to building from a Dockerfile. This change allows for more customization and better alignment with project-specific dependencies. Also, update the `remoteUser` to use a dynamic environment variable.
  • Loading branch information
jcardozo committed Sep 15, 2024
1 parent a29fc82 commit c452148
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "Spring Boot Devbox Isolated Environment Demo",
"image": "mcr.microsoft.com/vscode/devcontainers/universal:1-linux",
"build": {
"dockerfile": "Dockerfile"
},
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
"forwardPorts": [8080],
"postCreateCommand": "curl -fsSL https://get.jetify.com/devbox | bash && git clone https://github.com/eth-library/devbox-spring-demo.git && cd devbox-spring-demo && . ~/.devbox/shell && mvn spring-boot:run",
"remoteUser": "codespace"
}
"remoteUser": "${DEVBOX_USER}"
}

0 comments on commit c452148

Please sign in to comment.