Add custom deb support

此提交包含在:
2025-11-30 14:37:12 +01:00
父節點 c033dca8d2
當前提交 05007461aa
共有 2 個檔案被更改,包括 12 行新增2 行删除

4
.gitignore 已供應
查看文件

@@ -10,6 +10,8 @@ dist/
tmp/
*.out
# Ignora file di configurazione locali
.env
*.local
@@ -23,3 +25,5 @@ tmp/
# (Facoltativo) Ignora file Containerfile se non vuoi versionarli
# Containerfile
Services/lemonade/*.deb

查看文件

@@ -11,12 +11,18 @@ USER root
EXPOSE 8000
# Install Lemonade SDK
COPY *.deb /tmp/
RUN apt-get update && apt-get install -y nano unzip wget curl jq pciutils ffmpeg libatomic1 && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
update-pciids && \
VERSION=$(curl -s https://api.github.com/repos/lemonade-sdk/lemonade/releases/latest | jq -r .tag_name | sed 's/^v//') && \
wget -O /tmp/lemonade-server-minimal.deb \
https://github.com/lemonade-sdk/lemonade/releases/download/v${VERSION}/lemonade-server-minimal_${VERSION}_amd64.deb && \
DEB_FILE=$(ls /tmp/*.deb 2>/dev/null | head -1) && \
if [ -n "$DEB_FILE" ]; then \
cp "$DEB_FILE" /tmp/lemonade-server-minimal.deb; \
else \
wget -O /tmp/lemonade-server-minimal.deb \
https://github.com/lemonade-sdk/lemonade/releases/download/v${VERSION}/lemonade-server-minimal_${VERSION}_amd64.deb; \
fi && \
dpkg -i /tmp/lemonade-server-minimal.deb || apt-get install -fy && \
rm /tmp/lemonade-server-minimal.deb