mirror of
https://github.com/james-m-jordan/morphik-core.git
synced 2025-05-09 19:32:38 +00:00
22 lines
382 B
Plaintext
22 lines
382 B
Plaintext
![]() |
# 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"]
|