Skip to content

Commit 6af24c1

Browse files
committed
test: dockerfile
1 parent 614b1a6 commit 6af24c1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# --------------- dev stage for developers to override sources
22
FROM node:20.19.5-alpine as dev
33

4-
RUN apk --no-cache add make gcc g++ python3
4+
RUN apk --no-cache add make gcc g++ python3 git jq
55
ENV NODE_ENV=development
66

77
RUN mkdir /app
@@ -12,9 +12,12 @@ COPY package*.json ./
1212
RUN echo "SKIP_PREFLIGHT_CHECK=true" > .env
1313
RUN echo "EXTEND_ESLINT=true" >> .env
1414

15-
RUN echo "@linode:registry=https://npm.pkg.github.com/linode" > .npmrc
1615
RUN --mount=type=secret,id=NPM_TOKEN \
17-
echo "//npm.pkg.github.com/:_authToken=$(cat /run/secrets/NPM_TOKEN)" >> .npmrc
16+
echo "@linode:registry=https://npm.pkg.github.com/" > .npmrc && \
17+
echo "//npm.pkg.github.com/:_authToken=$(cat /run/secrets/NPM_TOKEN)" >> .npmrc && \
18+
echo "DEBUG: .npmrc created with token" && \
19+
cat .npmrc | sed 's/ghp_[a-zA-Z0-9]*/ghp_REDACTED/' && \
20+
test -s /run/secrets/NPM_TOKEN && echo "DEBUG: Secret file exists and is not empty" || echo "DEBUG: Secret file is empty or missing"
1821

1922
RUN npm ci
2023

0 commit comments

Comments
 (0)