WorkLog initial import

This commit is contained in:
2026-10-29 16:27:34 +08:00
commit bc62f11230
19 changed files with 3774 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r /app/requirements.txt
COPY server /app/server
COPY dist /app/dist
COPY config.toml /app/config.toml
RUN mkdir -p /app/data
ENV WORKLOG_HOST=0.0.0.0 \
WORKLOG_PORT=37777 \
WORKLOG_DB=/app/data/worklog.db \
WORKLOG_FRONTEND=/app/dist
EXPOSE 37777
VOLUME /app/data
CMD ["python", "-m", "server.main"]