Update dockerfile

This commit is contained in:
何勇
2024-08-22 12:48:04 +00:00
parent 47839c8043
commit bdf14471cf

View File

@@ -1,9 +1,6 @@
# 使用 Ubuntu 作为基础镜像
FROM python:3.12
# 维护者信息
#LABEL maintainer="your_email@example.com"
# 更新包列表并安装必要的工具
RUN apt-get update
RUN apt-get install -y curl
@@ -21,8 +18,8 @@ COPY . /PcapAddRemark
RUN pip3 install --no-cache-dir -r requirements.txt
# 暴露端口(如果你的应用需要暴露端口)
EXPOSE 5000
# EXPOSE 5000
# 设置容器启动时运行的命令
CMD ["cd /PcapAddRemark"]
CMD ["python", "FlaskService.py"]