# Use a base image
FROM python:3.9-slim
 
# Maintainer label (optional)
LABEL maintainer="Srinath Thilakarathne <srinath@example.com>"
 
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
 
# Set the working directory
WORKDIR /usr/src/app
 
# Copy project files
COPY requirements.txt /usr/src/app/
COPY . /usr/src/app/
 
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
 
# Expose the application port
EXPOSE 5000
 
ENTRYPOINT ["executable", "param1"]
 
# Command to run the application
CMD ["python", "app.py"]