feat: 智捷ERP 自动化部署完成,包含 Docker 配置与品牌定制

This commit is contained in:
yi
2026-06-10 10:04:19 +08:00
parent 3e24e73b23
commit 5f25392908
9 changed files with 324 additions and 11 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM python:2.7-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set work directory
WORKDIR /app
# Install Python dependencies
# Using PyMySQL which is pure python, so we might not need gcc/mysql-client-dev
COPY Install/requirements.txt /app/Install/requirements.txt
RUN pip install --no-cache-dir -r Install/requirements.txt
# Copy project
COPY . /app/
# Expose port
EXPOSE 8000
# Run server
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]