-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
12 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,16 +1,22 @@ | ||
FROM alpine | ||
FROM alpine:3.19.1 | ||
RUN apk --no-cache add bash jq | ||
RUN apk --no-cache add bash curl | ||
RUN apk --no-cache add bash tar | ||
|
||
RUN apk add bash jq | ||
RUN apk add bash tar | ||
|
||
COPY resources/opa.tar.gz /opa.tar.gz | ||
WORKDIR /ams | ||
|
||
RUN tar -xzf /opa.tar.gz -C /bin/ --remove-files | ||
RUN adduser -D -u 443 amsnonroot | ||
RUN chown amsnonroot /ams | ||
|
||
COPY resources/opa.tar.gz /opa.tar.gz | ||
RUN tar -xzf /opa.tar.gz -C /bin/ --remove-files | ||
RUN chown -R amsnonroot /bin | ||
RUN chmod +x /bin/opa | ||
|
||
COPY k8s-sidecar/start.sh / | ||
COPY ./sidecar/start.sh . | ||
COPY ./sidecar/config-template.json . | ||
|
||
COPY k8s-sidecar/config-template.json / | ||
USER amsnonroot | ||
|
||
CMD ["/start.sh"] | ||
CMD ["/bin/bash","/ams/start.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