Add custom deb support
Este commit está contenido en:
4
.gitignore
vendido
4
.gitignore
vendido
@@ -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
|
||||
|
||||
|
||||
Referencia en una nueva incidencia
Block a user