Skip to content

Commit

Permalink
update port
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfril committed Jun 21, 2024
1 parent 1fb3d5f commit aea6e0e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ COPY . /app
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# Make port 5000 available to the world outside this container
EXPOSE 5000
# Make port 3000 available to the world outside this container
EXPOSE 3000

# Define environment variable
ENV NAME WebScrapingApp

# Run app.py when the container launches
CMD ["python", "src/app/app.py"]
CMD ["python", "src/app.py"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ flask run
```
2. Trigger the scraper via API:
```bash
curl http://127.0.0.1:5000/scrape
curl http://127.0.0.1:3000/scrape
```

### Deployment
Expand Down
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ def create_app():

if __name__ == '__main__':
app = create_app()
app.run(debug=True)
app.run(host='0.0.0.0', port=3000, debug=True)

0 comments on commit aea6e0e

Please sign in to comment.