rqbit/docker/Dockerfile

29 lines
710 B
Text
Raw Permalink Normal View History

# Depends on either outputs of Dockerfile.xx or the binaries compiled elsewhere.
2024-08-26 12:33:32 +01:00
FROM scratch
2024-08-26 16:48:45 +01:00
ADD https://curl.se/ca/cacert.pem /etc/ssl/cacerts.pem
ARG TARGETPLATFORM
2024-08-26 12:33:32 +01:00
## Assumes you are running this from respective context folder.
2024-08-26 15:42:38 +01:00
COPY --chmod=755 ${TARGETPLATFORM}/rqbit /bin/rqbit
2024-08-26 12:33:32 +01:00
WORKDIR /home/rqbit
2024-08-26 16:29:58 +01:00
ENV XDG_DATA_HOME=/home/rqbit/db
2024-08-26 12:33:32 +01:00
ENV XDG_CACHE_HOME=/home/rqbit/cache
2024-08-26 16:48:45 +01:00
ENV SSL_CERT_FILE=/etc/ssl/cacerts.pem
2024-08-26 12:33:32 +01:00
2024-08-26 16:29:58 +01:00
ENV RQBIT_HTTP_API_LISTEN_ADDR=0.0.0.0:3030
2024-08-26 12:33:32 +01:00
ENV RQBIT_TCP_LISTEN_MIN_PORT=4240
2024-08-26 16:29:58 +01:00
ENV RQBIT_TCP_LISTEN_MAX_PORT=4260
2024-08-26 12:33:32 +01:00
2024-08-26 16:29:58 +01:00
VOLUME /home/rqbit/db
2024-08-26 12:33:32 +01:00
VOLUME /home/rqbit/cache
2024-08-26 16:29:58 +01:00
VOLUME /home/rqbit/downloads
2024-08-26 12:33:32 +01:00
2024-08-26 16:29:58 +01:00
EXPOSE 3030
2024-08-26 12:33:32 +01:00
EXPOSE 4240
2024-08-26 16:29:58 +01:00
CMD ["server", "start", "/home/rqbit/downloads"]
2024-08-26 12:33:32 +01:00
ENTRYPOINT ["/bin/rqbit"]