From 1768a6a2f9d75a1ddca0c95fe017a9e62e816c2f Mon Sep 17 00:00:00 2001 From: Juancho Date: Sat, 20 Dec 2025 19:11:15 -0500 Subject: [PATCH] Comit Inicial --- Dockerfile | 19 +++++++++++++++++++ docker-compose.yaml | 15 +++++++++++++++ test.sh | 1 + workspace.code-workspace | 4 ++++ 4 files changed, 39 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yaml create mode 100644 test.sh create mode 100644 workspace.code-workspace diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5469f1a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu + +RUN apt update && apt upgrade -y && apt autoremove -y && apt install python3 python3-pip -y && apt install git nano wget -y + +ENV URL_DESCARGA_RCLONE="https://downloads.rclone.org/v1.72.1/rclone-v1.72.1-linux-amd64.deb" + +EXPOSE 5572 + +WORKDIR /app + +RUN wget $URL_DESCARGA_RCLONE + +RUN dpkg -i rclone-v1.72.1-linux-amd64.deb + +RUN wget https://raw.githubusercontent.com/kadma/pruebasdocker/main/rclone-gui/test.sh + +RUN chmod +x test.sh + +ENTRYPOINT ./test.sh \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..09bacf6 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,15 @@ +--- +services: + rclone-webdav: + build: + context: . + dockerfile: Dockerfile + container_name: rclone-gui + environment: + - USER_RCLONE=adm + - PASSWORD_RCLONE=pass + volumes: + - /path/to/config:/root/.config/rclone + restart: unless-stopped + network_mode: bridge + hostname: rclone-gui diff --git a/test.sh b/test.sh new file mode 100644 index 0000000..0e6a1db --- /dev/null +++ b/test.sh @@ -0,0 +1 @@ +rclone rcd --rc-web-gui --rc-addr :5572 --rc-serve --rc-user=$USER_RCLONE --rc-pass=$PASSWORD_RCLONE --rc-no-auth --config "/root/.config/rclone/rclone.conf" --user-agent "Mozilla" --transfers 24 \ No newline at end of file diff --git a/workspace.code-workspace b/workspace.code-workspace new file mode 100644 index 0000000..7a5a969 --- /dev/null +++ b/workspace.code-workspace @@ -0,0 +1,4 @@ +{ + "folders": [], + "settings": {} +}