mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-03-28 17:42:45 +01:00
Created complete project structure for mc-webui MVP: - Docker configuration (Dockerfile, docker-compose.yml) - Environment configuration (.env.example) - Python dependencies (requirements.txt) - Project documentation (README.md) - Git ignore rules (.gitignore) - Directory structure for app, routes, templates, static files Ready for Phase 1: Backend implementation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
36 lines
730 B
Docker
36 lines
730 B
Docker
# mc-webui Dockerfile
|
|
# Python 3.11+ with Flask and meshcore-cli
|
|
|
|
FROM python:3.11-slim
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Install system dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
gcc \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy requirements first for better layer caching
|
|
COPY requirements.txt .
|
|
|
|
# Install Python dependencies
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Install meshcore-cli
|
|
RUN pip install --no-cache-dir meshcore-cli
|
|
|
|
# Copy application code
|
|
COPY app/ ./app/
|
|
|
|
# Expose Flask port
|
|
EXPOSE 5000
|
|
|
|
# Environment variables (can be overridden by docker-compose)
|
|
ENV FLASK_HOST=0.0.0.0
|
|
ENV FLASK_PORT=5000
|
|
ENV FLASK_DEBUG=false
|
|
|
|
# Run the application
|
|
CMD ["python", "-m", "app.main"]
|