forked from chriskinsman/github-action-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
22 lines (19 loc) · 766 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Mac build
FROM --platform=linux/amd64 node:16-alpine as base
# original: FROM node:16-alpine as base
LABEL org.opencontainers.image.source=https://github.com/ChrisKinsman/github-action-dashboard
WORKDIR /github-action-dashboard
# ---- Dependencies
FROM base as dependencies
RUN apk add --no-cache --virtual .gyp python3 make g++ git openssh
# ---- npm ci production
FROM dependencies as npm
COPY package.json package-lock.json ./
COPY node_modules ./node_modules
RUN npm rebuild
# production stage & clean up
FROM base as release
ENV NODE_ENV production
COPY client/dist ./client/dist/
COPY actions.js configure.js getinstallationid.js github.js index.js routes.js runstatus.js webhooks.js ./
COPY --from=npm /github-action-dashboard/node_modules ./node_modules