update code structure and get session on each query
All checks were successful
Build Docker Image / build (push) Successful in 12m54s

This commit is contained in:
ksyasuda
2025-02-09 20:20:10 -08:00
parent 410a7c92d9
commit af0d958b89
14 changed files with 234 additions and 234 deletions

View File

@@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y \
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY server.py requirements.txt /app/
COPY . /app
# Install any needed packages specified in requirements.txt
# If there are no external dependencies, you can skip this step
@@ -27,5 +27,4 @@ EXPOSE "${PORT_NUMBER}"
RUN pip3 install --no-cache-dir -r requirements.txt
# Run server.py when the container launches
# CMD ["python3", "server.py", "--host", "${LISTEN_ADDRESS}", "--port", "${LISTEN_PORT}", "--input-ipc-server", "${MPV_SOCKET}"]
CMD gunicorn --bind "${LISTEN_ADDRESS}":"${LISTEN_PORT}" server:app
CMD gunicorn --bind "${LISTEN_ADDRESS}":"${LISTEN_PORT}" run:app