diff --git a/Dockerfile b/Dockerfile index 66a8b91..450681c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md index 25a6c4a..1d560c6 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/app.py b/src/app.py index ca84bb5..e5cbdd3 100644 --- a/src/app.py +++ b/src/app.py @@ -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)