19 lines
591 B
Docker
19 lines
591 B
Docker
FROM python:3.13-slim
|
|
|
|
RUN pip install --no-cache-dir flask toml requests transmission-rpc gunicorn
|
|
|
|
WORKDIR /app
|
|
COPY . /app
|
|
|
|
RUN chmod +x /app/fetch.py /app/helper.py /app/batch.py \
|
|
&& ln -s /app/batch.py /usr/local/bin/nyaa-batch \
|
|
&& ln -s /app/fetch.py /usr/local/bin/nyaa-fetch \
|
|
&& ln -s /app/helper.py /usr/local/bin/nyaa-helper \
|
|
&& chmod +x /app/docker/entrypoint-fetch.sh
|
|
|
|
ENV NYAA_TOOLS_CONFIG_DIR=/etc/nyaa-tools
|
|
|
|
EXPOSE 5000
|
|
|
|
# default: run the web UI; the fetch service overrides this in compose
|
|
CMD ["gunicorn", "--chdir", "web", "--bind", "0.0.0.0:5000", "server:app"]
|