Skip to content

Commit

Permalink
Fixed common part of Dockerfile #2213
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Dec 21, 2023
1 parent c93bb37 commit 9941c51
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions tools/Dockerfile.tail
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
WORKDIR ${prefix}
WORKDIR /uniget_bootstrap
RUN <<EOF
find . -type f,l \
| grep -v "${prefix}${uniget_manifests}/${name}.txt" \
>"${prefix}${uniget_manifests}/${name}.txt"
| grep -v "/var/lib/uniget/manifests/${name}.txt" \
>"/uniget_bootstrap/var/lib/uniget/manifests/${name}.txt"
EOF
#RUN <<EOF
#find "${prefix}" -type f -executable -exec strip --verbose --strip-all --preserve-dates {} \;
#EOF
COPY manifest.json "${prefix}${uniget_manifests}/${name}.json"
COPY manifest.json "/uniget_bootstrap/var/lib/uniget/manifests/${name}.json"

FROM scratch
ARG ref
ARG name
ARG version
ARG deps
ARG tags
ARG prefix_override=/uniget_bootstrap
ENV prefix=${prefix_override}
COPY --from=prepare ${prefix} /
COPY --from=prepare /uniget_bootstrap /
LABEL org.opencontainers.image.source="https://github.com/uniget-org/tools" \
org.opencontainers.image.ref.name="${ref}" \
org.opencontainers.image.title="${name}" \
Expand Down

0 comments on commit 9941c51

Please sign in to comment.