Skip to content

Commit

Permalink
ci: fix dockerfile lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert Hernandez Pellicer committed Jan 13, 2024
1 parent 2ecebe0 commit 1d8c0c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ENV NODE_ENV=development

COPY package*.json $DIR

RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > $DIR/.npmrc && \
RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > "$DIR/.npmrc" && \
npm ci && \
rm -f .npmrc

Expand All @@ -22,10 +22,11 @@ CMD ["npm", "run", "start:dev"]

FROM base AS build

# hadolint ignore=DL3018
RUN apk update && apk add --no-cache dumb-init

COPY package*.json $DIR
RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > $DIR/.npmrc && \
RUN echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > "$DIR/.npmrc" && \
npm ci && \
rm -f .npmrc

Expand Down

0 comments on commit 1d8c0c9

Please sign in to comment.