mgbam commited on
Commit
3fb4ddd
·
verified ·
1 Parent(s): a6c116d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -5
Dockerfile CHANGED
@@ -1,13 +1,19 @@
1
- FROM python:3.10
2
 
3
  WORKDIR /code
4
 
 
 
 
 
5
  COPY requirements.txt .
6
- RUN apt-get update && apt-get install -y redis-server && pip install --no-cache-dir -r requirements.txt
7
 
 
8
  COPY . .
9
 
10
- COPY start.sh /start.sh
11
- RUN chmod +x /start.sh
12
 
13
- ENTRYPOINT ["/start.sh"]
 
 
1
+ FROM python:3.10-slim
2
 
3
  WORKDIR /code
4
 
5
+ # Install Redis
6
+ RUN apt-get update && apt-get install -y redis && rm -rf /var/lib/apt/lists/*
7
+
8
+ # Copy and install Python deps
9
  COPY requirements.txt .
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
 
12
+ # Copy all source files
13
  COPY . .
14
 
15
+ # Ensure start.sh is executable
16
+ RUN chmod +x start.sh
17
 
18
+ # Default to start.sh
19
+ ENTRYPOINT ["./start.sh"]