Skip to content

Commit 0969c26

Browse files
authored
Merge pull request #100 from vsoch/update-container-base
fix bug with docker build
2 parents 81b48d9 + d2ea9c2 commit 0969c26

2 files changed

Lines changed: 14 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ represented by the pull requests that fixed them. Critical items to know are:
1414
Versions correspond with GitHub releases that can be referenced with @ using actions.
1515

1616
## [master](https://github.com/vsoch/pull-request-action/tree/master) (master)
17-
- bugfix of missing output values (1.0.23)
18-
- bugfix of token handling if 401 error received (missing 401 case) (1.0.21)
19-
- bugfix of writing to environment file (missing newline) (1.0.19)
20-
- bugfix of missing from branch with scheduled run (1.0.16)
21-
- forgot to add assignees (1.0.15)
22-
- output and environment variables for PR number and return codes (1.0.5)
23-
- added support for reviewer (individual and team) assignments (1.0.4)
24-
- added support for maintainer can modify and assignees (1.0.3)
17+
- alpine cannot install to system python anymore (1.1.0)
18+
- bugfix of missing output values (1.0.23)
19+
- bugfix of token handling if 401 error received (missing 401 case) (1.0.21)
20+
- bugfix of writing to environment file (missing newline) (1.0.19)
21+
- bugfix of missing from branch with scheduled run (1.0.16)
22+
- forgot to add assignees (1.0.15)
23+
- output and environment variables for PR number and return codes (1.0.5)
24+
- added support for reviewer (individual and team) assignments (1.0.4)
25+
- added support for maintainer can modify and assignees (1.0.3)

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ LABEL "com.github.actions.description"="Create a pull request when a branch is c
77
LABEL "com.github.actions.icon"="activity"
88
LABEL "com.github.actions.color"="yellow"
99

10-
RUN apk --no-cache add python3 py3-pip git bash && \
11-
pip3 install requests
10+
# Newer alpine we are not allowed to install to system python
11+
RUN apk --no-cache add python3 py3-pip py3-virtualenv git bash && \
12+
python3 -m venv /opt/env && \
13+
/opt/env/bin/pip3 install requests
1214
COPY pull-request.py /pull-request.py
1315

1416
RUN chmod u+x /pull-request.py
15-
ENTRYPOINT ["python3", "/pull-request.py"]
17+
ENTRYPOINT ["/opt/env/bin/python3", "/pull-request.py"]

0 commit comments

Comments
 (0)