Skip to content

Commit

Permalink
readme + dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cartoush committed Apr 1, 2024
1 parent 7dd3b21 commit 9ebf095
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]

16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9ebf095

Please sign in to comment.