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

update Dockerfile

parent 6752015d
...@@ -10,17 +10,19 @@ COPY requirements.txt . ...@@ -10,17 +10,19 @@ COPY requirements.txt .
# Install dependencies # Install dependencies
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of your application code # Copy the rest of the application code
COPY . . COPY . .
# Set environment variables (you can override these when running the container) # Environment variables (can be overridden at runtime)
ENV REDDIT_CLIENT_ID= \ ENV REDDIT_CLIENT_ID="" \
REDDIT_CLIENT_SECRET= \ REDDIT_CLIENT_SECRET="" \
PORT=8000 SUBREDDITS="worldnews" \
POST_LIMIT=10 \
COMMENT_LIMIT=10 \
OUTPUT_DIR="/app/output"
# Expose the port your app runs on # Create output directory inside container
EXPOSE ${PORT} RUN mkdir -p ${OUTPUT_DIR} && mkdir -p ${OUTPUT_DIR}/.meta
# Command to run your Python app (update as needed) # Default command to run the scraper
# For example, if you have an app.py file: CMD ["python", "app.py"]
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