mirror of
https://github.com/linuxserver/docker-scummvm.git
synced 2026-01-21 05:02:18 +08:00
45 lines
1.2 KiB
Docker
45 lines
1.2 KiB
Docker
# syntax=docker/dockerfile:1
|
|
FROM ghcr.io/linuxserver/baseimage-selkies:debianbookworm
|
|
|
|
# set version label
|
|
ARG BUILD_DATE
|
|
ARG VERSION
|
|
ARG SCUMMVM_VERSION
|
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
|
LABEL maintainer="thelamer"
|
|
|
|
# title
|
|
ENV TITLE=ScummVM
|
|
|
|
RUN \
|
|
echo "**** add icon ****" && \
|
|
curl -o \
|
|
/usr/share/selkies/www/icon.png \
|
|
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/scummvm-logo.png && \
|
|
echo "**** install packages ****" && \
|
|
if [ -z "${SCUMMVM_VERSION+x}" ]; then \
|
|
SCUMMVM_VERSION=$(curl -s https://downloads.scummvm.org/frs/scummvm/ \
|
|
| awk -F'(<a href="|/">)' '{print $2}'| grep -B 1 'daily' |head -n1); \
|
|
fi && \
|
|
curl -o \
|
|
/tmp/scummvm.deb -L \
|
|
"https://downloads.scummvm.org/frs/scummvm/${SCUMMVM_VERSION}/scummvm_${SCUMMVM_VERSION}-1_debian12_amd64.deb" && \
|
|
apt-get update && \
|
|
apt-get install -y \
|
|
/tmp/scummvm.deb && \
|
|
echo "**** cleanup ****" && \
|
|
apt-get autoclean && \
|
|
rm -rf \
|
|
/config/.cache \
|
|
/var/lib/apt/lists/* \
|
|
/var/tmp/* \
|
|
/tmp/*
|
|
|
|
# add local files
|
|
COPY /root /
|
|
|
|
# ports and volumes
|
|
EXPOSE 3001
|
|
|
|
VOLUME /config
|