fix: docker

This commit is contained in:
Kristofers Solo 2025-09-20 00:15:50 +03:00
parent b9bdbcb1eb
commit ca3fbdb8f5
Signed by: kristoferssolo
GPG Key ID: 8687F2D3EEE6F0ED
2 changed files with 3 additions and 4 deletions

View File

@ -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 ./

View File

@ -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