-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ACPENG-1385: Update kubecertmanager helper.go getRoute53HostedDomains…
…() function (#98) * ACPENG-1385: Update kubecertmanager helper.go getRoute53HostedDomains() function * ACPENG-1385: Update alpine version * ACPENG-1385: Update maintainer * ACPENG-1385: Update drone pipeline to reflect mainline branch change * ACPENG-1385: Update alpine packages & add non-root user * ACPENG-1385: Implement trivy scan on drone pipeline * ACPENG-1385: Update go binary version * ACPENG-1385: Temporarily overide trivy exit code due to go modules * ACPENG-1385: Add ca-certificates apk package
- Loading branch information
Showing
3 changed files
with
57 additions
and
27 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
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,10 +1,28 @@ | ||
FROM alpine:3.13 | ||
MAINTAINER Rohith Jayawardene <gambol99@gmail.com> | ||
FROM alpine:3.19 | ||
|
||
RUN apk -U add ca-certificates --no-cache | ||
# Non-Root Application User | ||
ARG USER=application | ||
ARG UID=1000 | ||
|
||
COPY bin/policy-admission /policy-admission | ||
|
||
USER 1000 | ||
RUN set -euxo pipefail ;\ | ||
# Create non-Root user | ||
adduser \ | ||
-D \ | ||
-g "" \ | ||
-u "$UID" \ | ||
-H \ | ||
"$USER" ; \ | ||
#Update System Packages | ||
apk update ;\ | ||
apk upgrade ;\ | ||
apk add --no-cache \ | ||
ca-certificates ;\ | ||
rm -rf /var/cache/apk/* ;\ | ||
update-ca-certificates ;\ | ||
# Update File Perms | ||
chmod +x /policy-admission ; | ||
|
||
ENTRYPOINT [ "/policy-admission" ] | ||
USER $UID | ||
ENTRYPOINT ["/policy-admission"] |
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