上传新文件
This commit is contained in:
28
dockerfile
Normal file
28
dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
# 使用 Ubuntu 作为基础镜像
|
||||
FROM python:3.12
|
||||
|
||||
# 维护者信息
|
||||
#LABEL maintainer="your_email@example.com"
|
||||
|
||||
# 更新包列表并安装必要的工具
|
||||
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 ["cd /PcapAddRemark"]
|
||||
|
||||
Reference in New Issue
Block a user