Skip to content

Commit

Permalink
fix: update par2 turbo build (#994)
Browse files Browse the repository at this point in the history
  • Loading branch information
onedr0p committed Apr 8, 2024
1 parent 364b303 commit 6cb34aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 5 additions & 4 deletions apps/par2cmdline-turbo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM docker.io/library/alpine:3.19 as build
FROM docker.io/library/alpine:3.19 as par2
ARG TARGETARCH
ARG VERSION
WORKDIR /tmp
ENV LDFLAGS="-static"
USER root
WORKDIR /tmp
RUN \
apk add --no-cache \
autoconf \
Expand All @@ -19,7 +20,7 @@ RUN \
&& make \
&& make install

FROM scratch
COPY --from=build /usr/local/bin/par2 /usr/local/bin/par2
FROM docker.io/library/alpine:3.19
COPY --from=par2 /usr/local/bin/par2 /usr/local/bin/par2
RUN /usr/local/bin/par2 --help
CMD ["/usr/local/bin/par2"]
4 changes: 4 additions & 0 deletions apps/par2cmdline-turbo/ci/goss.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
file:
/usr/local/bin/par2:
exists: true

0 comments on commit 6cb34aa

Please sign in to comment.