fix(devcontainer): remove broken yarn apt source to fix build (#3490)
This change introduces a Dockerfile to the devcontainer configuration that removes the broken Yarn repository from `/etc/apt/sources.list.d/`. This prevents `apt-get update` from failing due to an expired or missing GPG key for the Yarn repository. Fixes #3487
This commit is contained in:
parent
5aad0c6bbb
commit
2161db53c9
7
.devcontainer/Dockerfile
Normal file
7
.devcontainer/Dockerfile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
FROM mcr.microsoft.com/devcontainers/jekyll
|
||||||
|
|
||||||
|
# Fix: Remove the broken Yarn repository from the apt sources.
|
||||||
|
# This prevents 'apt-get update' from failing due to the missing GPG key.
|
||||||
|
# (Yarn is already provided by the dev container features/nvm, so this system repo is unnecessary)
|
||||||
|
# See issue #3487
|
||||||
|
RUN rm -f /etc/apt/sources.list.d/yarn.list
|
||||||
@ -2,7 +2,10 @@
|
|||||||
// README at: https://github.com/devcontainers/templates/tree/main/src/jekyll
|
// README at: https://github.com/devcontainers/templates/tree/main/src/jekyll
|
||||||
{
|
{
|
||||||
"name": "Jekyll",
|
"name": "Jekyll",
|
||||||
"image": "mcr.microsoft.com/devcontainers/jekyll",
|
// Using a Dockerfile to fix the broken Yarn repository. See issue #3487.
|
||||||
|
"build": {
|
||||||
|
"dockerfile": "Dockerfile"
|
||||||
|
},
|
||||||
|
|
||||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||||
"features": {
|
"features": {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user