18 lines
334 B
Docker
18 lines
334 B
Docker
# Use official Python image
|
|
FROM python:3.10
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy application code
|
|
COPY . .
|
|
|
|
# Install dependencies
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Expose the application port
|
|
EXPOSE 8000
|
|
|
|
# Run Gunicorn server
|
|
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "polisplexity.wsgi:application"]
|