FROM alpine:3.13.1 ARG LIBRESPOT_PACKAGE_REPOSITORY=http://dl-cdn.alpinelinux.org/alpine/edge/testing ARG LIBRESPOT_PACKAGE_VERSION=0.1.3-r1 ENV LIBRESPOT_CACHE_PATH=/var/cache/librespot RUN apk add --repository=$LIBRESPOT_PACKAGE_REPOSITORY --no-cache \ librespot=$LIBRESPOT_PACKAGE_VERSION \ && mkdir $LIBRESPOT_CACHE_PATH \ && chown librespot $LIBRESPOT_CACHE_PATH VOLUME $LIBRESPOT_CACHE_PATH RUN apk add --no-cache strace USER librespot CMD ["librespot", "--help"]