Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions JIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM python:3.12-slim

WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
libssl-dev \
libffi-dev \
python3-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Copy application code first (including requirements.txt)
COPY . .

# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV FLASK_APP=app.py
ENV PYTHONDONTWRITEBYTECODE=1

# Use the PORT environment variable provided by Render
ENV PORT=10000

# Expose port
EXPOSE ${PORT}

# Run the application with Gunicorn
CMD gunicorn --bind 0.0.0.0:${PORT} --workers 4 --timeout 120 --access-logfile - --error-logfile - app:app Backend/Dockerfile
Loading