chore: re-initialize git repository for deployment

This commit is contained in:
yi
2026-06-10 14:01:56 +08:00
commit 7783e965fd
131 changed files with 14355 additions and 0 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"]