forked from youyo/aws-cdk-github-actions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from mrmeyers99/alpine-3.14-better
Run docker as a non root user to work around permissions issue caused by upgrading to alpine 3.14
- Loading branch information
Showing
2 changed files
with
30 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
FROM alpine:3.13 | ||
FROM node:16-alpine3.14 | ||
|
||
RUN apk --update --no-cache add nodejs npm python3 py3-pip jq curl bash git docker && \ | ||
ln -sf /usr/bin/python3 /usr/bin/python | ||
RUN apk --update --no-cache add python3 py3-pip jq curl bash git docker sudo && \ | ||
ln -sf /usr/bin/python3 /usr/bin/python && \ | ||
addgroup github && adduser -G github -D github && \ | ||
echo '%github ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/github | ||
|
||
COPY --from=golang:alpine /usr/local/go/ /usr/local/go/ | ||
ENV PATH="/usr/local/go/bin:${PATH}" | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
USER github:github | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters