# Use Python image FROM python:3.9 # Create a working directory WORKDIR /app # Copy all files to the container COPY . . # Install the tools needed RUN pip install --no-cache-dir -r requirements.txt # Create the users.json file if it doesn't exist RUN if [ ! -f users.json ]; then echo "[]" > users.json; fi # Expose the port Hugging Face expects EXPOSE 7860 # Command to run the app CMD ["python", "app.py"]