diff --git a/Dockerfile b/Dockerfile index e79fb0d..68f0e04 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,17 @@ FROM python:3.11-slim WORKDIR /app +# Copy requirements first for better caching COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt +# Copy all application files COPY . . +# Ensure proper permissions +RUN chmod +x app.py + EXPOSE 5000 -CMD ["python", "app.py"] \ No newline at end of file +# Use python module syntax for better reliability +CMD ["python", "-u", "app.py"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 8260725..235f8d5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,6 +8,4 @@ services: environment: - FLASK_ENV=development - SECRET_KEY=your-secret-key-change-in-production - volumes: - - .:/app restart: unless-stopped \ No newline at end of file