rsvp-server / Dockerfile
rakshith
wow plz works
e42870c
raw
history blame contribute delete
401 Bytes
FROM python:3.11-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create logs directory with proper permissions
RUN mkdir -p logs && chmod 777 logs
# Expose port
EXPOSE 7860
# Run the application with uvicorn and WSGI adapter
CMD ["uvicorn", "wsgi:app", "--host", "0.0.0.0", "--port", "7860"]