Skip to content

Commit

Permalink
fix: dockerfile
Browse files Browse the repository at this point in the history
builder: add full path to helper script
builder: add shell path /bin/sh
runner: remove WORKDIR
bump version
  • Loading branch information
acavella committed Jan 5, 2024
1 parent 4f50c2f commit dd936eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
FROM docker.io/library/golang:1.20.12-alpine3.19 as builder

ENV GOREVOKE_TAG=v1.0.0-rc.2
ENV GOREVOKE_TAG=v1.0.0-rc.3
WORKDIR /go/src/

RUN apk add --no-cache -U git \
&& git clone https://github.com/acavella/gorevoke \
&& cd gorevoke && git checkout ${GOREVOKE_TAG} \
&& ./build/docker/bin/install.sh
&& /bin/sh /go/src/gorevoke/build/docker/bin/install.sh

FROM registry.access.redhat.com/ubi9/ubi:9.3-1476 as runner
LABEL maintainer="Tony Cavella <[email protected]>"
WORKDIR /usr/local/bin/gorevoke/

COPY --from=builder /usr/local/bin/gorevoke/ /usr/local/bin/

Expand Down

0 comments on commit dd936eb

Please sign in to comment.