generated from mrz1836/go-template
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(BUX-449): docker image cannot be run
- Loading branch information
1 parent
2712984
commit 66b70db
Showing
2 changed files
with
7 additions
and
5 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,17 +1,17 @@ | ||
FROM --platform=$TARGETPLATFORM registry.access.redhat.com/ubi9-minimal | ||
|
||
# Set working directory | ||
WORKDIR /app | ||
|
||
ARG project_name | ||
ARG TARGETPLATFORM | ||
COPY ./dist/$TARGETPLATFORM . | ||
|
||
ARG version | ||
ARG tag | ||
ENV APP_BINARY=${project_name} | ||
ENV VERSION=${version:-develop} | ||
ENV TAG=${tag:-master} | ||
COPY ./release/entrypoint.sh . | ||
RUN chmod +x entrypoint.sh | ||
|
||
COPY ./dist/$TARGETPLATFORM/$APP_BINARY . | ||
|
||
# Set entrypoint | ||
ENTRYPOINT ["./$APP_BINARY"] | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
exec "./$APP_BINARY" "$@" |