start webui

This commit is contained in:
ra_ma
2025-06-20 18:59:25 +01:00
parent 5da6f7e95c
commit 222e8c99af
7 changed files with 107 additions and 9 deletions

View File

@@ -8,13 +8,10 @@ WORKDIR /opt/app
COPY . /opt/app/
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir Flask requests python-dotenv beautifulsoup4
RUN pip install --no-cache-dir Flask requests python-dotenv beautifulsoup4 gunicorn
# Make port 8182 available to the world outside this container
EXPOSE 8182
# Define environment variable
ENV FLASK_APP=metaproxy.py
# Run app.py when the container launches
CMD ["flask", "run", "--host=0.0.0.0", "--port=8182"]
# Run Gunicorn
CMD ["gunicorn", "--bind", "0.0.0.0:8182", "app:app"]