sudacode ce605006f5
All checks were successful
Build Docker Image / build (push) Successful in 14m39s
update add_video route and change queue method
- change add to queue method from `GET` on `/` to `POST` on `/queue`
- update `/add_video` route to accept single video url
2025-02-25 02:02:54 -08:00

27 lines
705 B
Docker

# Use an official Python runtime as a parent image
FROM python:3.10-slim
# Set environment variables for the MPV socket and server host/port
ENV LISTEN_ADDRESS="0.0.0.0" \
LISTEN_PORT=8080
RUN apt-get update && apt-get install -y \
build-essential \
libpq-dev \
gcc \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Make port 8080 available to the world outside this container
EXPOSE "${PORT_NUMBER}"
RUN pip3 install --no-cache-dir -r requirements.txt
# Run server.py when the container launches
CMD gunicorn --bind ${LISTEN_ADDRESS}:${LISTEN_PORT} run:app