# start from container with PYTHON interpreter
FROM python:3.11-slim

# Owner data 
LABEL maintainer="your-email-address"

# Defines where the code will be placed in container
RUN  mkdir -p  /work_dir
WORKDIR  /work_dir

# Upgrade installation program 
RUN pip install --no-cache-dir -U pip

# Copy file with required libraries
COPY requirements.txt .

# Install application libraries
RUN pip install -r requirements.txt

# Copy application files to work directory
COPY  . .

# Run our application (service)
CMD ["python", "main.py"]