-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathdockerfile
More file actions
34 lines (27 loc) · 839 Bytes
/
dockerfile
File metadata and controls
34 lines (27 loc) · 839 Bytes
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
29
30
31
32
33
34
FROM python:3.10.12-slim-bookworm
WORKDIR /app
COPY requirements.txt .
# Install common dependencies
RUN pip install $(grep -v "fuse\|git+" requirements.txt)
# Install build dependencies
RUN apt-get update && \
apt-get install -y git pkg-config libfuse-dev gcc make
# Architecture-specific installations
ARG TARGETPLATFORM
RUN echo "Building for $TARGETPLATFORM" && \
case "$TARGETPLATFORM" in \
"linux/amd64"|"linux/arm64") \
pip install fuse-python \
;; \
"linux/arm/v7"|"linux/arm/v8") \
pip install git+https://github.com/libfuse/python-fuse \
;; \
*) \
echo "Unsupported platform: $TARGETPLATFORM" && exit 1 \
;; \
esac
COPY . .
ENV TORBOX_API_KEY=
ENV MOUNT_METHOD=strm
ENV MOUNT_PATH=/torbox
CMD ["python", "main.py"]