mirror of
https://github.com/linuxserver/proot-apps.git
synced 2026-03-23 00:05:38 +08:00
29 lines
840 B
Docker
29 lines
840 B
Docker
ARG REPO
|
|
FROM ghcr.io/${REPO}:alpine-320 AS rootfs
|
|
ARG REPO
|
|
|
|
# Install packages
|
|
RUN \
|
|
echo "**** install packages ****" && \
|
|
apk add --no-cache \
|
|
gnome-weather && \
|
|
echo "**** customize desktop file ****" && \
|
|
DESKTOP_FILE=/usr/share/applications/weather-pa.desktop && \
|
|
echo '[Desktop Entry]' > ${DESKTOP_FILE} && \
|
|
echo 'Type=Application' >> ${DESKTOP_FILE} && \
|
|
echo 'Name=Weather PA' >> ${DESKTOP_FILE} && \
|
|
echo 'Icon=org.gnome.Weather' >> ${DESKTOP_FILE} && \
|
|
echo 'Exec=/bin/sh -c "$HOME/.local/bin/proot-apps run ghcr.io/'${REPO}':weather %U"' >> ${DESKTOP_FILE} && \
|
|
echo "**** set bin name ****" && \
|
|
echo "weather-pa" > /bin-name && \
|
|
echo "**** cleanup ****" && \
|
|
rm -rf \
|
|
/tmp/*
|
|
|
|
COPY ./entrypoint /entrypoint
|
|
COPY ./install /install
|
|
COPY ./remove /remove
|
|
|
|
FROM scratch
|
|
COPY --from=rootfs / /
|