Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
NxPKG committed Jul 28, 2024
1 parent d532097 commit fee53f7
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,17 @@

FROM alpine:3.19 AS base

# hadolint ignore=DL3018
RUN apk add --no-cache --update nodejs=18.18.2-r0
# Install nodejs
RUN apk add --no-cache nodejs

# Install npm separately
RUN apk add --no-cache npm

# Verify installations
RUN node -v && npm -v

# Set npm configurations
RUN npm config set update-notifier=false audit=false fund=false

WORKDIR /action

Expand All @@ -16,10 +25,12 @@ ENTRYPOINT [ "node" ]
FROM base AS build

# hadolint ignore=DL3018
RUN apk add --no-cache npm=9.6.6-r0
RUN apk add --no-cache --update nodejs

# Verify installations
RUN node -v && npm -v

# slience npm
# hadolint ignore=DL3059
# Set npm configurations
RUN npm config set update-notifier=false audit=false fund=false

# install packages
Expand Down

0 comments on commit fee53f7

Please sign in to comment.