This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
appsketch-works-pcap-comment/dockerfile
2024-08-22 12:48:04 +00:00

26 lines
577 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 使用 Ubuntu 作为基础镜像
FROM python:3.12
# 更新包列表并安装必要的工具
RUN apt-get update
RUN apt-get install -y curl
RUN apt-get install -y vim
RUN apt-get install -y tshark
RUN apt-get clean
# 设置工作目录
WORKDIR /PcapAddRemark
# 复制项目文件到容器中
COPY . /PcapAddRemark
# 安装 Python 依赖(如果有 requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt
# 暴露端口(如果你的应用需要暴露端口)
# EXPOSE 5000
# 设置容器启动时运行的命令
CMD ["python", "FlaskService.py"]