Skip to content

Commit

Permalink
fix(BUX-449): docker image cannot be run
Browse files Browse the repository at this point in the history
  • Loading branch information
dorzepowski committed Jan 11, 2024
1 parent 2712984 commit 66b70db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions release/Dockerfile
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"]
2 changes: 2 additions & 0 deletions release/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
exec "./$APP_BINARY" "$@"

0 comments on commit 66b70db

Please sign in to comment.