-
Notifications
You must be signed in to change notification settings - Fork 48
/
Dockerfile
25 lines (15 loc) · 729 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM node:18-alpine as builder
RUN mkdir -p /opt/autoupdate/dist
WORKDIR /opt/autoupdate
COPY . /opt/autoupdate/
RUN yarn install --frozen-lockfile && yarn run build
FROM node:18-alpine as runner
LABEL com.github.actions.name="Auto-update pull requests with changes from their base branch"
LABEL com.github.actions.description="A GitHub Action that auto-updates PRs with changes from their base branch"
LABEL com.github.actions.icon="git-pull-request"
LABEL com.github.actions.color="blue"
RUN apk add --update --no-cache ca-certificates \
&& mkdir -p /opt/autoupdate
WORKDIR /opt/autoupdate
COPY --from=builder /opt/autoupdate/dist/index.js /opt/autoupdate/index.js
ENTRYPOINT [ "node", "/opt/autoupdate/index.js" ]