Skip to content

Commit

Permalink
style: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadnassri committed Jul 28, 2023
1 parent 53d2db7 commit c2990dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 11 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# kics-scan disable=9bae49be-0aa3-4de5-bab2-4c3a069e40cd
# --- base stage --- #

FROM alpine:3.18 AS base

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

WORKDIR /action

Expand All @@ -14,7 +15,7 @@ ENTRYPOINT [ "node" ]
FROM base AS build

# hadolint ignore=DL3018
RUN apk add --no-cache npm
RUN apk add --no-cache npm=9.8.1-r0

# slience npm
# hadolint ignore=DL3059
Expand All @@ -30,10 +31,10 @@ RUN node install.js
FROM base AS app

LABEL com.github.actions.name="Conventional Commit Lint" \
com.github.actions.description="commitlint your PRs with Conventional style" \
com.github.actions.icon="search" \
com.github.actions.color="red" \
maintainer="Ahmad Nassri <ahmad@ahmadnassri.com>"
com.github.actions.description="commitlint your PRs with Conventional style" \
com.github.actions.icon="search" \
com.github.actions.color="red" \
maintainer="Ahmad Nassri <ahmad@ahmadnassri.com>"

# copy from build image
COPY --from=build /usr/local/lib/node_modules /usr/lib/node
Expand All @@ -42,4 +43,8 @@ COPY --from=build /action/node_modules ./node_modules
# copy files
COPY action ./

USER node

HEALTHCHECK NONE

CMD ["/action/index.js"]
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
# ---- mega-linter ---- #
lint:
profiles: ["dev"]
image: oxsecurity/megalinter-javascript:v6.20.1
image: oxsecurity/megalinter:v7.2.1
volumes:
- ./:/tmp/lint
environment:
Expand Down

0 comments on commit c2990dd

Please sign in to comment.