-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.template
29 lines (26 loc) · 1002 Bytes
/
Dockerfile.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#syntax=docker/dockerfile:1.6.0
#FROM ghcr.io/uniget-org/tools/python:latest AS python
FROM ghcr.io/uniget-org/tools/shiv:latest AS shiv
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" ]
#COPY --link --from=python / /usr/local/
COPY --link --from=shiv / /usr/local/
RUN <<EOF
apt-get update
apt-get -y install --no-install-recommends \
python3-pip \
python3-venv \
python-is-python3
EOF
ARG name
ARG version
RUN <<EOF
shiv --output-file "${prefix}/bin/http" --console-script http "httpie==${version}"
curl --silent --location --fail --output "${prefix}/share/bash-completion/completions/http" \
"https://github.com/httpie/cli/raw/${version}/extras/httpie-completion.bash"
curl --silent --location --fail --output "${prefix}/share/fish/vendor_completions.d/http.fish" \
"https://github.com/httpie/cli/raw/${version}/extras/httpie-completion.fish"
EOF