File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 11# --------------- dev stage for developers to override sources
22FROM node:20.19.5-alpine as dev
33
4- RUN apk --no-cache add make gcc g++ python3 git jq
4+ RUN apk --no-cache add make gcc g++ python3
55ENV NODE_ENV=development
66
77RUN mkdir /app
@@ -12,12 +12,9 @@ COPY package*.json ./
1212RUN echo "SKIP_PREFLIGHT_CHECK=true" > .env
1313RUN echo "EXTEND_ESLINT=true" >> .env
1414
15+ RUN echo "@linode:registry=https://npm.pkg.github.com/linode" > .npmrc
1516RUN --mount=type=secret,id=NPM_TOKEN \
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"
17+ echo "//npm.pkg.github.com/:_authToken=$(cat /run/secrets/NPM_TOKEN)" >> .npmrc
2118
2219RUN npm ci
2320
You can’t perform that action at this time.
0 commit comments