mirror of
https://github.com/kristoferssolo/tg-relay-rs.git
synced 2025-12-20 11:04:41 +00:00
fix: docker
This commit is contained in:
parent
b9bdbcb1eb
commit
ca3fbdb8f5
@ -1,4 +1,4 @@
|
||||
FROM rust:1.90-slim-trixie as builder
|
||||
FROM rust:1.90-slim-trixie AS builder
|
||||
WORKDIR /app
|
||||
|
||||
COPY Cargo.toml Cargo.lock ./
|
||||
|
||||
@ -7,10 +7,9 @@ services:
|
||||
BINARY_NAME: tg-relay-rs
|
||||
environment:
|
||||
TELOXIDE_TOKEN: ${TELOXIDE_TOKEN}
|
||||
COOKIES_PATH: /app/yt-cookies.txt
|
||||
COOKIES_PATH: ${COOKIES_PATH:-/app/yt-cookies.txt}
|
||||
RUST_LOG: ${RUST_LOG:-info}
|
||||
restart: unless-stopped
|
||||
# If you need persistent storage (e.g. caching):
|
||||
volumes:
|
||||
- ./comments.txt:/app/comments.txt:ro
|
||||
- ~/.config/yt-cookies.txt:/app/yt-cookies.txt:ro
|
||||
- ${HOME}/.config/yt-cookies.txt:/app/yt-cookies.txt:ro
|
||||
|
||||
Loading…
Reference in New Issue
Block a user