Skip to content
Snippets Groups Projects
Commit 95f56a1b authored by Nicholas Dille's avatar Nicholas Dille Committed by Nicholas Dille
Browse files

Fixed build #2213

parent ffdd6c55
No related branches found
No related tags found
No related merge requests found
#syntax=docker/dockerfile:1.6.0
FROM ubuntu:22.04 AS build
FROM nicholasdille/ubuntu:22.04 AS prepare
COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
/etc/profile.d/ \
/etc/profile.d/
SHELL [ "bash", "-clo", "errexit" ]
RUN <<EOF
apt-get update
apt-get -y install --no-install-recommends \
......@@ -18,14 +22,5 @@ check-download "http://ftp.figlet.org/pub/figlet/program/unix/figlet-${version}.
curl --silent --location --fail "http://ftp.figlet.org/pub/figlet/program/unix/figlet-${version}.tar.gz" \
| tar --extract --gzip --strip-components=1
make figlet LDFLAGS=-static DEFAULTFONTDIR=/share/figlet
make install prefix=/opt/figlet
make install prefix="${prefix}"
EOF
\ No newline at end of file
FROM nicholasdille/ubuntu:22.04 AS prepare
COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
/etc/profile.d/ \
/etc/profile.d/
SHELL [ "bash", "-clo", "errexit" ]
ARG name
ARG version
COPY --from=build /opt/figlet/ ${prefix}/
\ No newline at end of file
#syntax=docker/dockerfile:1.6.0
FROM ubuntu:22.04@sha256:6042500cf4b44023ea1894effe7890666b0c5c7871ed83a97c36c76ae560bb9b AS build
FROM nicholasdille/ubuntu:22.04 AS prepare
COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
/etc/profile.d/ \
/etc/profile.d/
SHELL [ "bash", "-clo", "errexit" ]
RUN <<EOF
apt-get update
apt-get -y install --no-install-recommends \
......@@ -14,19 +18,8 @@ ARG name
ARG version
RUN <<EOF
git clone -q --config advice.detachedHead=false --depth 1 --branch "${version}" https://github.com/netblue30/firejail .
./configure --prefix=/usr/local
./configure --prefix="${prefix}"
make
make install-strip
mv /usr/local/share/zsh/site-functions /usr/local/share/zsh/vendor-completions
rm -f /usr/local/man
rm -f /usr/local/sbin/unminimize
mv "${prefix}/share/zsh/site-functions" "${prefix}/share/zsh/vendor-completions"
EOF
\ No newline at end of file
FROM nicholasdille/ubuntu:22.04 AS prepare
COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
/etc/profile.d/ \
/etc/profile.d/
SHELL [ "bash", "-clo", "errexit" ]
ARG name
ARG version
COPY --from=build /usr/local/ ${prefix}/
\ No newline at end of file
#syntax=docker/dockerfile:1.6.0
FROM ghcr.io/uniget-org/tools/base:latest AS download
FROM nicholasdille/ubuntu:22.04 AS prepare
COPY --from=ghcr.io/uniget-org/tools/uniget-build:latest \
/etc/profile.d/ \
/etc/profile.d/
SHELL [ "bash", "-clo", "errexit" ]
ARG name
ARG version
RUN <<EOF
......@@ -24,10 +28,7 @@ check-github-release-asset "superfly/flyctl" "v${version}" "flyctl_${version}_Li
echo "### Downloading flyctl ${version}"
curl --silent --location --fail "https://github.com/superfly/flyctl/releases/download/v${version}/flyctl_${version}_Linux_${arch_suffix}.tar.gz" \
| tar --extract --gzip --directory="${prefix}/bin/" --no-same-owner
EOF
FROM download AS prepare
RUN <<EOF
"${prefix}/bin/flyctl" completion bash >"${prefix}/share/bash-completion/completions/flyctl"
"${prefix}/bin/flyctl" completion fish >"${prefix}/share/fish/vendor_completions.d/flyctl.fish"
"${prefix}/bin/flyctl" completion zsh >"${prefix}/share/zsh/vendor-completions/_flyctl"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment