21 lines
511 B
Docker
21 lines
511 B
Docker
# Use the official Python image from the Docker Hub
|
|
FROM python:3.11-slim
|
|
|
|
# Set environment variables
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
# Create and set the working directory
|
|
WORKDIR /app
|
|
|
|
# Copy the Python script and any other necessary files into the container
|
|
COPY mbox_to_markdown.py /app/
|
|
COPY requirements.txt /app/
|
|
|
|
# Install Python dependencies
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Define the command to run the Python script
|
|
CMD ["python", "mbox_to_markdown.py"]
|
|
|