forked from realbestia2/EasyProxy
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (21 loc) · 1.07 KB
/
Copy pathDockerfile
File metadata and controls
28 lines (21 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Stage 1: Build
# Use an official lightweight Python image as the base.
FROM python:3.11-slim
# Set the working directory inside the container.
WORKDIR /app
# Copy the dependency file.
# Doing this before the rest of the code takes advantage of Docker's cache if dependencies don't change.
COPY requirements.txt .
# Install dependencies.
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application code into the working directory.
COPY . .
# Correct OCI (Open Container Initiative) image metadata.
LABEL org.opencontainers.image.title="HLS Proxy Server"
LABEL org.opencontainers.image.description="Universal proxy server for HLS streams with support for Vavoo, DLHD, and playlist builder"
LABEL org.opencontainers.image.version="2.5.0"
LABEL org.opencontainers.image.source="https://github.com/domainus/EasyProxy-English"
# Expose the port the application listens on.
EXPOSE 7860
# Command to start the app in production with Gunicorn
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "4", "--worker-class", "aiohttp.worker.GunicornWebWorker", "app:app"]