Skip to content

Commit

Permalink
build: improved dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadnassri committed Aug 1, 2023
1 parent 7b4d492 commit ee9eebc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# kics-scan disable=9bae49be-0aa3-4de5-bab2-4c3a069e40cd
# kics-scan disable=9bae49be-0aa3-4de5-bab2-4c3a069e40cd,67fd0c4a-68cf-46d7-8c41-bc9fba7e40ae

# --- base stage --- #

FROM alpine:3.18 AS base
Expand Down Expand Up @@ -41,8 +42,13 @@ COPY --from=build /usr/local/lib/node_modules /usr/lib/node
COPY --from=build /action/node_modules ./node_modules

# copy files
COPY src ./
COPY package.json src ./

WORKDIR /github/workspace/

HEALTHCHECK NONE

# hadolint ignore=DL3002
USER root

CMD ["/action/index.js"]

0 comments on commit ee9eebc

Please sign in to comment.