Vinayak221 commited on
Commit
a8c2502
·
verified ·
1 Parent(s): a12a42d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -7
Dockerfile CHANGED
@@ -1,14 +1,21 @@
1
-
2
  FROM python:3.9
3
 
4
- WORKDIR /code
 
 
 
 
5
 
6
- COPY ./requirements.txt /code/requirements.txt
 
 
7
 
8
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
9
 
10
- COPY . .
 
11
 
12
- EXPOSE 7860
13
 
14
- CMD ["shiny", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
  FROM python:3.9
2
 
3
+ # Set the working directory
4
+ WORKDIR /app
5
+
6
+ # Install supervisor
7
+ RUN apt-get update && apt-get install -y supervisor
8
 
9
+ # Copy requirements and install Python dependencies
10
+ COPY requirements.txt /app/
11
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
12
 
13
+ # Copy the rest of the application
14
+ COPY . /app/
15
 
16
+ # Supervisor configuration
17
+ COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
18
 
19
+ EXPOSE 7860 5001
20
 
21
+ CMD ["/usr/bin/supervisord"]