1
0
Fork 0
images/dummyhttp/Dockerfile
Sergio Talens-Oliag 9e52c042a1
All checks were successful
multi-semantic-release / multi-semantic-release (push) Successful in 42s
feat: created dummyhttp image
2025-04-30 18:55:31 +02:00

21 lines
705 B
Docker

# Image to run the dummyhttp application <https://github.com/svenstaro/dummyhttp>
# This arg could be passed by the container build command (used with mirrors)
ARG OCI_REGISTRY_PREFIX
# Latest tested version of alpine
FROM ${OCI_REGISTRY_PREFIX}alpine:3.21.3
# Tool versions
ARG DUMMYHTTP_VERS=1.1.1
# Download binary
RUN ARCH="$(apk --print-arch)" && \
VERS="$DUMMYHTTP_VERS" && \
URL="https://github.com/svenstaro/dummyhttp/releases/download/v$VERS/dummyhttp-$VERS-$ARCH-unknown-linux-musl" && \
wget "$URL" -O "/tmp/dummyhttp" && \
install /tmp/dummyhttp /usr/local/bin && \
rm -f /tmp/dummyhttp
# Set the entrypoint to /usr/local/bin/dummyhttp
ENTRYPOINT [ "/usr/local/bin/dummyhttp" ]