-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathDockerfile
30 lines (20 loc) · 854 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM debian:stable-slim
RUN apt update -y \
&& apt install --no-install-recommends --no-install-suggests -y wget python3 python3-pip \
&& apt install --no-install-recommends --no-install-suggests -y tmux \
&& apt-get clean \
&& apt-get autoremove \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /app/templates -p && cd /app \
&& pip3 install Flask ipip-ipdb html2text \
&& rm -rf /usr/share/python-wheels/*
ADD ./app /app
WORKDIR /app
EXPOSE 5000/tcp
CMD ["python3", "-m", "app"]
###################################################################
# docker build -t hongwenjun/ip .
# docker run -d -p 80:5000 --restart=always --name ip hongwenjun/ip
###################################################################
# github源码:https://github.com/hongwenjun/ip
# docker镜像:https://hub.docker.com/r/hongwenjun/ip