# this dockerfile is used to build the image for the emp_stash_fill service, install all the dependencies and run the service to listen to the tampermonkey script on the host browser

FROM python:3.10-slim

WORKDIR /emp_stash_fill

# Install system dependencies
RUN apt-get update && \
    apt-get install -y ffmpeg mktorrent && \
    rm -rf /var/lib/apt/lists/*

# Copy files and install Python dependencies
COPY ./src/stash-empornium .
RUN pip install --no-cache-dir -r requirements.txt

# Run the Flask app when the container is executed
CMD ["python", "emp_stash_fill.py", "--configdir", "/config"]
