Tao Wu commited on
Commit
864ab6f
·
1 Parent(s): 51e1871
Files changed (2) hide show
  1. Dockerfile +1 -6
  2. start.sh +0 -3
Dockerfile CHANGED
@@ -11,16 +11,11 @@ RUN pip install --no-cache-dir -r requirements.txt
11
 
12
 
13
  RUN export PYTHONUNBUFFERED=1
14
- RUN useradd -m -u 1000 user
15
 
16
  WORKDIR /app
17
  COPY app /app
18
 
19
- COPY dump.rdb /var/lib/redis/dump.rdb
20
-
21
- COPY start.sh /start.sh
22
- RUN chmod +x /start.sh
23
 
24
  EXPOSE 7860
25
 
26
- CMD ["/start.sh"]
 
11
 
12
 
13
  RUN export PYTHONUNBUFFERED=1
 
14
 
15
  WORKDIR /app
16
  COPY app /app
17
 
 
 
 
 
18
 
19
  EXPOSE 7860
20
 
21
+ CMD ["python", "-u", "app.py"]
start.sh DELETED
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
- redis-server --daemonize yes
3
- exec python -u app.py