# Python image to use
FROM python:3.10-slim

# Author of the image
MAINTAINER danielatlas

# Set the working directory to /app
WORKDIR /app

# Copy the requirements file used for dependencies
COPY requirements.txt .

# Install the needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Copy rest of the working directory contents into the container at /app
COPY ../upload .

# Run app.py when the container launches
ENTRYPOINT ["python3", "main.py"]
