first commit
This commit is contained in:
25
Dockerfile
Normal file
25
Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
# 使用官方Python镜像
|
||||
FROM python:3.9-slim
|
||||
|
||||
# 设置工作目录
|
||||
WORKDIR /app
|
||||
|
||||
# 安装系统依赖
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 安装Python依赖
|
||||
RUN pip install --no-cache-dir \
|
||||
mkdocs==1.5.3 \
|
||||
mkdocs-material==9.4.8 \
|
||||
pymdown-extensions==10.3.1
|
||||
|
||||
# 复制项目文件
|
||||
COPY . .
|
||||
|
||||
# 暴露端口
|
||||
EXPOSE 8000
|
||||
|
||||
# 启动命令
|
||||
CMD ["mkdocs", "serve", "--dev-addr=0.0.0.0:8000"]
|
||||
Reference in New Issue
Block a user