# Use the official Python base image | |
FROM python:3.9 | |
# Install Git LFS | |
RUN apt-get update && apt-get install -y git-lfs | |
# Set the working directory | |
WORKDIR /app | |
# Copy requirements.txt into the container | |
COPY requirements.txt . | |
# Install the required packages | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Set the git credential helper to "store" | |
RUN git config --global credential.helper store | |
# Copy the rest of the application files into the container | |
COPY . . | |
# Set environment variables (Replace with your actual values) | |
ENV HUGGINGFACE_AUTH_TOKEN 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 | |
ENV SUBREDDIT askreddit | |
ENV START_DATE 2013-01-01 | |
# Copy supervisord.conf into the container | |
COPY supervisord.conf . | |
# Expose the desired port | |
EXPOSE 7860 | |
# Run supervisord | |
CMD ["supervisord", "-c", "supervisord.conf"] |