Simply redirect a host to another location.
305
Source: https://github.com/jmervine/just-redirect
Accepts the following environment variables:
REDIRECT_TARGET: The location to redirect to (e.g. REDIRECT_TARGET=http://www.example.com/).PORT: The port to listen on (e.g. PORT=3000)BIND: The address to listen on (e.g. BIND=0.0.0.0)For use in other images.
FROM jmervine/just-redirect:latest AS just-redirect
FROM alpine:3
COPY --from=just-redirect /app/just-redirect /usr/local/bin/just-redirect
ENV REDIRECT_TARGET=https://www.example.com/
ENV PORT=80
ENV BIND=0.0.0.0
ENTRYPOINT ["just-redirect"]
Content type
Image
Digest
Size
10.2 MB
Last updated
over 6 years ago
docker pull jmervine/just-redirect