2022-02-16 03:42:32 +01:00
|
|
|
# httpie podman container
|
|
|
|
#
|
|
|
|
# Note: SELinux requires the :Z attribute set on volumes in Podman/Docker
|
|
|
|
#
|
|
|
|
# To download a file to the PWD:
|
|
|
|
# podman run \
|
|
|
|
# --rm \
|
|
|
|
# -it \
|
|
|
|
# -v ${PWD}:/downloads:Z \
|
|
|
|
# httpie -d <url>
|
|
|
|
#
|
|
|
|
# To see a webpage:
|
|
|
|
# podman run \
|
|
|
|
# --rm \
|
|
|
|
# -it \
|
|
|
|
# httpie <url>
|
|
|
|
#
|
|
|
|
FROM alpine:latest
|
2022-07-24 00:30:09 +02:00
|
|
|
LABEL maintainer "Jeffrey Serio <hyperreal@fedoraproject.org>"
|
2022-02-16 03:42:32 +01:00
|
|
|
|
|
|
|
RUN apk --no-cache add \
|
|
|
|
ca-certificates \
|
|
|
|
gcc \
|
|
|
|
musl-dev \
|
|
|
|
python3 \
|
|
|
|
python3-dev \
|
|
|
|
py3-pip \
|
|
|
|
&& pip install httpie httpie-unixsocket
|
|
|
|
|
|
|
|
RUN mkdir /downloads
|
|
|
|
WORKDIR /downloads
|
|
|
|
|
|
|
|
ENTRYPOINT [ "http" ]
|