Delete Dockerfile
Browse files- Dockerfile +0 -34
Dockerfile
DELETED
|
@@ -1,34 +0,0 @@
|
|
| 1 |
-
FROM ubuntu:20.04
|
| 2 |
-
|
| 3 |
-
RUN apt-get update && \
|
| 4 |
-
apt-get install -y \
|
| 5 |
-
fuse \
|
| 6 |
-
libfuse2 \
|
| 7 |
-
wget \
|
| 8 |
-
software-properties-common \
|
| 9 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
-
|
| 11 |
-
# --- 方法1:通过APT安装MuseScore(推荐) ---
|
| 12 |
-
# 添加MuseScore官方APT仓库和密钥
|
| 13 |
-
RUN wget -qO- https://keys.openpgp.org/vks/v1/by-fingerprint/6B2D584327FA6B8B6A4E3C49A7BFC3F0A5E67360 | gpg --dearmor > /etc/apt/trusted.gpg.d/musescore.gpg
|
| 14 |
-
RUN echo "deb https://repo.musescore.org/stable/ubuntu focal main" > /etc/apt/sources.list.d/musescore.list
|
| 15 |
-
|
| 16 |
-
# 安装MuseScore
|
| 17 |
-
RUN apt-get update && apt-get install -y musescore4
|
| 18 |
-
|
| 19 |
-
# --- 方法2:或使用解压后的AppImage ---
|
| 20 |
-
# 如果需要使用AppImage,取消注释以下代码:
|
| 21 |
-
# RUN wget https://github.com/musescore/MuseScore/releases/download/v4.0.2/MuseScore-4.0.2-x86_64.AppImage -O MuseScore.AppImage
|
| 22 |
-
# RUN chmod +x MuseScore.AppImage
|
| 23 |
-
# RUN ./MuseScore.AppImage --appimage-extract
|
| 24 |
-
# ENV MSCORE_PATH="/squashfs-root/usr/bin/mscore"
|
| 25 |
-
|
| 26 |
-
# 安装Python依赖
|
| 27 |
-
COPY requirements.txt .
|
| 28 |
-
RUN pip install -r requirements.txt
|
| 29 |
-
|
| 30 |
-
# 复制应用代码
|
| 31 |
-
COPY . .
|
| 32 |
-
|
| 33 |
-
# 设置启动命令
|
| 34 |
-
CMD ["python", "app.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|