forked from QiuChenlyOpenSource/MusicDownload
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (16 loc) · 654 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (16 loc) · 654 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
FROM python:3.11-slim-buster
LABEL name="QQFlacMusicDownloader"
ENV TZ Asia/Shanghai
# Keeps Python from generating .pyc files in the container
ENV PYTHONDONTWRITEBYTECODE=1
# Turns off buffering for easier container logging
ENV PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y \
gcc g++ libjpeg-dev zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
COPY ./ .
RUN pip3 install --no-cache-dir --upgrade pip -i https://mirrors.bfsu.edu.cn/pypi/web/simple && \
pip3 install --no-cache-dir -r requirements.txt -i https://mirrors.bfsu.edu.cn/pypi/web/simple
EXPOSE 8899
CMD ["python3", "MainServer.py"]