Files
jellyplist/Dockerfile
2024-11-22 12:29:29 +00:00

26 lines
550 B
Docker

# Use the official Python image as a base image
FROM python:3.12-slim
# Set the working directory
WORKDIR /jellyplist
# Copy requirements file and install dependencies
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN apt update
RUN apt install ffmpeg netcat-openbsd -y
# Copy the application code
COPY . .
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Expose the port the app runs on
EXPOSE 5055
# Set the entrypoint
ENTRYPOINT ["/entrypoint.sh"]
# Run the application
CMD ["python", "run.py"]