fix permissioning in the dockerfile
All checks were successful
Build and publish the docker image / build (push) Successful in 11m44s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn 2025-01-21 06:15:25 +03:00
parent 2d61656ddb
commit f14163ba8a
Signed by: ngn
GPG Key ID: A3654DF5AD9F641D
3 changed files with 4 additions and 3 deletions

View File

@ -18,9 +18,10 @@ RUN apt install -y ca-certificates
RUN useradd -d /src -u 1001 nitter
WORKDIR /srv
RUN chown nitter:nitter -R /srv
COPY --from=build /src/nitter ./
COPY --from=build /src/public ./public
USER nitter
CMD ./nitter
CMD ./srv/nitter

View File

@ -8,7 +8,7 @@ services:
- ./nitter.conf:/srv/nitter.conf:Z,ro
- ./accounts.jsonl:/srv/accounts.jsonl:Z,ro
depends_on:
- nitter-redis
- nitter_redis
restart: unless-stopped
user: 998:998
security_opt:

View File

@ -11,7 +11,7 @@ accountsFile = "./accounts.jsonl"
[cache]
listMinutes = 240 # how long to cache list info (not the tweets, so keep it high)
rssMinutes = 10 # how long to cache rss queries
redisHost = "localhost" # Change to "nitter-redis" if using docker-compose
redisHost = "localhost" # Change to "nitter_redis" if using docker-compose
redisPort = 6379
redisPassword = ""
redisConnections = 20 # minimum open connections in pool