2023-02-10 23:02:01 +00:00
|
|
|
FROM alpine:latest
|
|
|
|
|
WORKDIR /z
|
2023-02-18 23:04:55 +00:00
|
|
|
LABEL org.opencontainers.image.url="https://github.com/9001/copyparty" \
|
|
|
|
|
org.opencontainers.image.source="https://github.com/9001/copyparty/tree/hovudstraum/scripts/docker" \
|
|
|
|
|
org.opencontainers.image.licenses="MIT" \
|
|
|
|
|
org.opencontainers.image.title="copyparty-min" \
|
|
|
|
|
org.opencontainers.image.description="just copyparty, no thumbnails / media tags / audio transcoding"
|
2023-08-15 15:07:33 +00:00
|
|
|
ENV PYTHONPYCACHEPREFIX=/tmp/pyc \
|
|
|
|
|
XDG_CONFIG_HOME=/cfg
|
2023-02-10 23:02:01 +00:00
|
|
|
|
2023-05-11 06:56:21 +00:00
|
|
|
RUN apk --no-cache add !pyc \
|
2023-02-10 23:02:01 +00:00
|
|
|
python3 \
|
2023-05-11 06:56:21 +00:00
|
|
|
&& rm -rf /tmp/pyc \
|
2023-02-10 23:02:01 +00:00
|
|
|
&& mkdir /cfg /w \
|
|
|
|
|
&& chmod 777 /cfg /w \
|
|
|
|
|
&& echo % /cfg > initcfg
|
|
|
|
|
|
|
|
|
|
COPY i/dist/copyparty-sfx.py ./
|
|
|
|
|
WORKDIR /w
|
2023-02-11 21:10:28 +00:00
|
|
|
EXPOSE 3923
|
2023-08-15 15:07:33 +00:00
|
|
|
ENTRYPOINT ["python3", "/z/copyparty-sfx.py", "--no-crt", "--no-thumb", "-c", "/z/initcfg"]
|