Some checks failed
continuous-integration/drone/push Build is failing
- Added full-featured web UI with drag-and-drop task sorting - Implemented CRUD API endpoints for task management - Added task reordering endpoint with priority support - Created responsive HTML interface with inline styles - Updated Docker configuration for web service deployment - Added requirements.txt for dependency management - Enhanced README with web interface documentation - Made Google Calendar integration optional
25 lines
505 B
Docker
25 lines
505 B
Docker
# 使用自定义 Docker Registry 中已安装依赖的镜像
|
|
FROM git.tunpok.com/ching/python-env:latest
|
|
|
|
# 设置工作目录
|
|
WORKDIR /app
|
|
|
|
# 复制应用代码和模板
|
|
COPY app.py .
|
|
COPY templates/ templates/
|
|
|
|
# 创建数据目录
|
|
RUN mkdir -p /app/data
|
|
|
|
# 设置环境变量默认值
|
|
ENV PORT=5000
|
|
ENV API_KEY=change-me
|
|
ENV TASK_DB=/app/data/tasks.db
|
|
ENV GOOGLE_CREDENTIALS_FILE=/app/credentials.json
|
|
ENV CALENDAR_ID=primary
|
|
|
|
# 暴露端口
|
|
EXPOSE 5000
|
|
|
|
# 运行 Flask 应用
|
|
CMD ["python", "app.py"] |