Dockerfile 854 B

123456789101112131415161718192021222324252627282930
  1. FROM debian:stable-slim
  2. RUN apt update -y \
  3. && apt install --no-install-recommends --no-install-suggests -y wget python3 python3-pip \
  4. && apt install --no-install-recommends --no-install-suggests -y tmux \
  5. && apt-get clean \
  6. && apt-get autoremove \
  7. && rm -rf /var/lib/apt/lists/*
  8. RUN mkdir /app/templates -p && cd /app \
  9. && pip3 install Flask ipip-ipdb html2text \
  10. && rm -rf /usr/share/python-wheels/*
  11. ADD ./app /app
  12. WORKDIR /app
  13. EXPOSE 5000/tcp
  14. CMD ["python3", "-m", "app"]
  15. ###################################################################
  16. # docker build -t hongwenjun/ip .
  17. # docker run -d -p 80:5000 --restart=always --name ip hongwenjun/ip
  18. ###################################################################
  19. # github源码:https://github.com/hongwenjun/ip
  20. # docker镜像:https://hub.docker.com/r/hongwenjun/ip