ohmyapi commited on
Commit
d1451b5
·
1 Parent(s): 60ddd6c

Fix: correct binary path and log directory

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -3
  2. start.sh +1 -1
Dockerfile CHANGED
@@ -2,9 +2,11 @@ FROM calciumion/new-api:latest
2
 
3
  RUN apt-get update && apt-get install -y redis-server && rm -rf /var/lib/apt/lists/*
4
 
5
- COPY start.sh /app/start.sh
6
- RUN chmod +x /app/start.sh
 
 
7
 
8
  EXPOSE 3000
9
 
10
- ENTRYPOINT ["/app/start.sh"]
 
2
 
3
  RUN apt-get update && apt-get install -y redis-server && rm -rf /var/lib/apt/lists/*
4
 
5
+ RUN mkdir -p /tmp/logs
6
+
7
+ COPY start.sh /start.sh
8
+ RUN chmod +x /start.sh
9
 
10
  EXPOSE 3000
11
 
12
+ ENTRYPOINT ["/start.sh"]
start.sh CHANGED
@@ -20,4 +20,4 @@ done
20
  export REDIS_CONN_STRING="redis://127.0.0.1:6379"
21
 
22
  # Start new-api
23
- exec /app/new-api --log-dir /app/logs
 
20
  export REDIS_CONN_STRING="redis://127.0.0.1:6379"
21
 
22
  # Start new-api
23
+ exec /new-api --log-dir /tmp/logs