Skip to content

Commit 7aafa73

Browse files
authored
Fix build fail due to yarn gpg key (#37)
1 parent 558f9a6 commit 7aafa73

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.devcontainer/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ ARG DEBIAN_FRONTEND=noninteractive
66
# Switch to root for configuring image
77
USER root
88

9+
# Add new Yarn GPG key
10+
RUN mkdir -p /etc/apt/keyrings && \
11+
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor -o /etc/apt/keyrings/yarn.gpg && \
12+
echo "deb [signed-by=/etc/apt/keyrings/yarn.gpg] https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
13+
914
# Install man pages
1015
RUN yes | unminimize
1116

.devcontainer/devcontainer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"ghcr.io/devcontainers/features/dotnet:2": {
1616
"version": "8.0"
1717
},
18-
"ghcr.io/devcontainers/features/node:1": {},
18+
"ghcr.io/devcontainers/features/node:1": {
19+
"installYarnUsingApt": false
20+
},
1921
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {},
2022
"ghcr.io/devcontainers-extra/features/markdownlint-cli2:1": {},
2123
"ghcr.io/devcontainers/features/github-cli:1": {},

0 commit comments

Comments
 (0)