mpd
parent
baa0b7ac11
commit
886a6c768a
|
@ -0,0 +1,67 @@
|
|||
FROM alpine:3.15
|
||||
|
||||
RUN mkdir -p /var/lib/mpd && \
|
||||
addgroup --gid 10001 mpd && \
|
||||
adduser \
|
||||
--uid 10000 \
|
||||
--home /var/lib/mpd \
|
||||
--ingroup mpd \
|
||||
--disabled-password \
|
||||
--shell /sbin/nologin \
|
||||
mpd && \
|
||||
chown -R mpd /var/lib/mpd && \
|
||||
apk add --no-cache mpd
|
||||
|
||||
USER mpd
|
||||
CMD ["/usr/bin/mpd", "--no-daemon"]
|
||||
|
||||
|
||||
#RUN apk add --no-cache --virtual .build-deps \
|
||||
# curl \
|
||||
# cmake \
|
||||
# make \
|
||||
# gcc \
|
||||
# g++ \
|
||||
# musl-dev \
|
||||
# curl-dev \
|
||||
# automake \
|
||||
# autoconf \
|
||||
# libtool && \
|
||||
# mkdir -p /usr/local/src && \
|
||||
# curl -L \
|
||||
# --output "/usr/local/src/transmission-${VER}.tar.xz" \
|
||||
# "https://github.com/transmission/transmission-releases/raw/master/transmission-${VER}.tar.xz" && \
|
||||
# tar -xf "/usr/local/src/tranmission-${VER}.tar.xz" -C /usr/local/src && \
|
||||
# mkdir -p /usr/local/src/transmission/build && \
|
||||
# cd /usr/local/src/transmission/build && \
|
||||
# cmake .. && \
|
||||
# make && \
|
||||
# make install && \
|
||||
# cd / && \
|
||||
# rm -r /usr/local/src && \
|
||||
# apk del .build-deps && \
|
||||
# apk add --no-cache curl
|
||||
|
||||
#RUN addgroup \
|
||||
# --gid 10001 \
|
||||
# transmission && \
|
||||
# adduser \
|
||||
# --uid 10000 \
|
||||
# --home /var/lib/transmission \
|
||||
# --ingroup transmission \
|
||||
# --disabled-password \
|
||||
# --shell /sbin/nologin \
|
||||
# transmission && \
|
||||
# mkdir -p \
|
||||
# /var/lib/transmission/blocklists \
|
||||
# /var/lib/transmission/downloads \
|
||||
# /var/lib/transmission/incomplete \
|
||||
# /var/lib/transmission/resume \
|
||||
# /var/lib/transmission/torrents && \
|
||||
# chown -R transmission:transmission /var/lib/transmission
|
||||
|
||||
#ENV TRANSMISSION_HOME /var/lib/transmission
|
||||
#USER transmission
|
||||
#WORKDIR /var/lib/transmission
|
||||
|
||||
#CMD ["/usr/local/bin/transmission-daemon", "--foreground"]
|
|
@ -0,0 +1,22 @@
|
|||
IMG_NAME = mpd
|
||||
REGISTRY=registry.monotremata.xyz
|
||||
IMG=$(REGISTRY)/$(IMG_NAME)
|
||||
PLATFORMS=linux/amd64,linux/arm64
|
||||
|
||||
.PHONY: build build-nc push
|
||||
|
||||
build: Dockerfile
|
||||
docker build -t $(IMG) .
|
||||
|
||||
buildx: Dockerfile
|
||||
docker buildx build \
|
||||
--platform $(PLATFORMS) \
|
||||
--tag $(IMG) \
|
||||
--push \
|
||||
.
|
||||
|
||||
push: build
|
||||
docker image push $(IMG)
|
||||
|
||||
build-nc: Dockerfile
|
||||
docker build --no-cache -t $(IMG) .
|
Loading…
Reference in New Issue