|
FROM ubuntu:22.04
|
|
RUN apt-get update && apt-get install -y aria2
|
|
COPY aria2.conf /app/aria2.conf
|
|
|
|
RUN useradd -m -u 1000 user
|
|
|
|
|
|
COPY start.sh /app/start.sh
|
|
COPY config.json /data/config.json
|
|
RUN chmod +x /app/start.sh && mkdir /app/local
|
|
|
|
RUN chmod 777 /app/local
|
|
|
|
USER user
|
|
|
|
|
|
ENV HOME=/home/user \
|
|
PATH=/home/user/.local/bin:$PATH
|
|
|
|
|
|
WORKDIR $HOME/alist
|
|
RUN mkdir -p $HOME/alist/data
|
|
COPY config.json $HOME/alist/data/config.json
|
|
|
|
COPY --chown=user . $HOME/alist
|
|
EXPOSE 7860
|
|
RUN chmod +x $HOME/alist/alist
|
|
|
|
CMD ["/app/start.sh"] |