morphik-core/dockerfile

22 lines
382 B
Plaintext
Raw Normal View History

2024-11-17 16:51:18 -05:00
# Use Python 3.12.5 as base image
FROM python:3.12.5-slim
# Set working directory
WORKDIR /app
# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Set environment variables
ENV PYTHONUNBUFFERED=1
# Expose port
EXPOSE 8000
# Run the server
CMD ["python", "start_server.py"]