Commit 17719cb5 authored by Benavides Ontiveros's avatar Benavides Ontiveros
Browse files

update Dockerfile

parent 6752015d
......@@ -10,17 +10,19 @@ COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of your application code
# Copy the rest of the application code
COPY . .
# Set environment variables (you can override these when running the container)
ENV REDDIT_CLIENT_ID= \
REDDIT_CLIENT_SECRET= \
PORT=8000
# Environment variables (can be overridden at runtime)
ENV REDDIT_CLIENT_ID="" \
REDDIT_CLIENT_SECRET="" \
SUBREDDITS="worldnews" \
POST_LIMIT=10 \
COMMENT_LIMIT=10 \
OUTPUT_DIR="/app/output"
# Expose the port your app runs on
EXPOSE ${PORT}
# Create output directory inside container
RUN mkdir -p ${OUTPUT_DIR} && mkdir -p ${OUTPUT_DIR}/.meta
# Command to run your Python app (update as needed)
# For example, if you have an app.py file:
CMD ["python", "app.py"]
# Default command to run the scraper
CMD ["python", "app.py"]
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment