Skip to content

Commit

Permalink
Add base layer dockerfile for common setup
Browse files Browse the repository at this point in the history
Don't repeat node:18-slim
  • Loading branch information
glensc committed May 9, 2024
1 parent e8e6baf commit 28ce61a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:18-slim as build
FROM node:18-slim as base
FROM base as build

LABEL maintainer="Orta Therox"
LABEL "com.github.actions.name"="Danger JS Action"
Expand All @@ -15,8 +16,7 @@ RUN yarn remove 'typescript' --dev && yarn add 'typescript'
RUN yarn install --production --frozen-lockfile
RUN chmod +x distribution/commands/danger.js


FROM node:18-slim
FROM base
WORKDIR /usr/src/danger
ENV PATH="/usr/src/danger/node_modules/.bin:$PATH"
COPY package.json ./
Expand Down

0 comments on commit 28ce61a

Please sign in to comment.