-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (18 loc) · 694 Bytes
/
Dockerfile
File metadata and controls
21 lines (18 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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