update code structure and get session on each query
All checks were successful
Build Docker Image / build (push) Successful in 12m54s
All checks were successful
Build Docker Image / build (push) Successful in 12m54s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user