Sign inSign up

jmervine/just-redirect

By jmervine

•Updated over 6 years ago

Simply redirect a host to another location.

Image
0

305

jmervine/just-redirect repository overview

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"]

Tag summary

Content type

Image

Digest

Size

10.2 MB

Last updated

over 6 years ago

docker pull jmervine/just-redirect