mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-02 03:42:38 +02:00
add docker-compose and readme
This commit is contained in:
parent
751e0371d8
commit
11e224eb4d
8 changed files with 94 additions and 7 deletions
|
|
@ -14,8 +14,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||
COPY . .
|
||||
|
||||
# Expose port if your app needs it (adjust as needed)
|
||||
ENV HOSTNAME="0.0.0.0"
|
||||
ENV PORT=3001
|
||||
ENV FLASK_APP=app
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
# Command to run the application
|
||||
CMD ["python", "app.py"]
|
||||
# Command to run Flask development server
|
||||
CMD ["flask", "run", "--host=0.0.0.0", "--port=3002"]
|
||||
|
|
|
|||
|
|
@ -77,4 +77,5 @@ def chat():
|
|||
}), 500
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host=os.getenv('HOST', '0.0.0.0'), port=int(os.getenv('PORT', 3001)), debug=True)
|
||||
print("Starting Flask server...")
|
||||
app.run(port=5000, debug=True)
|
||||
Loading…
Add table
Add a link
Reference in a new issue