Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
software-project-WS25
Reddit Team
Commits
17719cb5
Commit
17719cb5
authored
Nov 26, 2025
by
Benavides Ontiveros
Browse files
update Dockerfile
parent
6752015d
Changes
1
Show whitespace changes
Inline
Side-by-side
Dockerfile
View file @
17719cb5
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment