fix permissioning in the dockerfile
All checks were successful
Build and publish the docker image / build (push) Successful in 11m44s
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:
parent
2d61656ddb
commit
f14163ba8a
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user