13 lines
306 B
Docker
13 lines
306 B
Docker
FROM python:3.10-slim
|
|
|
|
RUN python -m pip install --upgrade pip
|
|
RUN pip install Flask
|
|
|
|
# Установка curl, nano, ping и traceroute
|
|
RUN apt-get update && apt-get install -y curl nano iputils-ping traceroute
|
|
RUN mkdir /app
|
|
COPY ./network_tools.py /app
|
|
WORKDIR /app
|
|
|
|
CMD ["python", "network_tools.py"]
|