diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e912351 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM rust:alpine AS build + +COPY . /app + +WORKDIR /app + +RUN apk add --no-cache gcc g++ zlib zlib-dev + +RUN cargo build --release + +FROM alpine as runtime + +COPY --from=build app/target/release/transmission_api_client / + +CMD [ "./transmission_api_client" ] + diff --git a/README.md b/README.md new file mode 100644 index 0000000..9163e0b --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# Transmission to push + +## Build + +``` +cargo build +``` + +## Environment variables + +- `TURL`: Transmission server URL +- `TUSER`: Transmission user +- `TPWD`: Transmission password +- `NURL`: Ntfy server URL +- `NUSER`: Ntfy user +- `NPWD`: Ntfy password