forked from acgnhiki/blrec
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 698 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (19 loc) · 698 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
# syntax=docker/dockerfile:1
FROM python:3.11-slim-buster
WORKDIR /app
VOLUME ["/cfg", "/log", "/rec"]
COPY src src/
COPY setup.py setup.cfg ./
RUN apt-get update && \
apt-get install -y --no-install-recommends ffmpeg build-essential python3-dev && \
rm -rf /var/lib/apt/lists/* && \
pip3 install --no-cache-dir -e . && \
apt-get purge -y --auto-remove build-essential python3-dev
# ref: https://github.com/docker-library/python/issues/60#issuecomment-134322383
ENV BLREC_DEFAULT_SETTINGS_FILE=/cfg/settings.toml
ENV BLREC_DEFAULT_LOG_DIR=/log
ENV BLREC_DEFAULT_OUT_DIR=/rec
ENV TZ="Asia/Shanghai"
EXPOSE 2233
ENTRYPOINT ["blrec", "--host", "0.0.0.0", "--no-progress"]
CMD []