Skip to content

Commit

Permalink
Setup docker image labels to final image
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed May 9, 2024
1 parent 28ce61a commit d7c12e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM node:18-slim as base
FROM base as build

LABEL maintainer="Orta Therox"
LABEL "com.github.actions.name"="Danger JS Action"
Expand All @@ -8,6 +7,8 @@ LABEL "com.github.actions.icon"="zap"
LABEL "com.github.actions.color"="blue"

WORKDIR /usr/src/danger

FROM base as build
COPY package.json yarn.lock ./
RUN yarn install
COPY . .
Expand All @@ -17,7 +18,6 @@ RUN yarn install --production --frozen-lockfile
RUN chmod +x distribution/commands/danger.js

FROM base
WORKDIR /usr/src/danger
ENV PATH="/usr/src/danger/node_modules/.bin:$PATH"
COPY package.json ./
COPY --from=build /usr/src/danger/distribution ./dist
Expand Down

0 comments on commit d7c12e0

Please sign in to comment.