| FROM debian:latest |
|
|
| RUN apt-get update && apt-get install -y \ |
| wget \ |
| unzip |
| RUN apt-get update && apt-get install -y aria2 |
| WORKDIR /app |
|
|
| RUN wget https://github.com/cloudreve/Cloudreve/files/14327249/cloudreveplus-linux-amd64v2.zip \ |
| && unzip cloudreveplus-linux-amd64v2.zip \ |
| && rm cloudreveplus-linux-amd64v2.zip |
|
|
| RUN chmod 777 /app |
| COPY aria2.conf /app/aria2.conf |
| |
| COPY conf.ini /app/conf.ini |
| |
| ARG SLAVE_SECRET |
| |
| RUN sed -i "s|TEMP_SLAVE_SECRET|${SLAVE_SECRET}|g" /app/conf.ini |
|
|
| RUN chmod +x ./cloudreveplus-linux-amd64v2 |
|
|
| RUN mkdir -p /aria2/data |
|
|
| RUN chmod 777 /aria2/data |
|
|
| EXPOSE 8080 |
|
|
| |
| COPY start.sh /app/start.sh |
| RUN chmod +x /app/start.sh |
| CMD ["/app/start.sh"] |