Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update par2 turbo build #994

Merged
merged 2 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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