You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
694 B
Docker
22 lines
694 B
Docker
2 years ago
|
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
|