joytou commited on
Commit
cd3391d
·
verified ·
1 Parent(s): 4235e79

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -6
Dockerfile CHANGED
@@ -1,13 +1,20 @@
1
- FROM python:3.12
2
 
3
  WORKDIR /code
4
 
5
- COPY ./requirements.txt /code/requirements.txt
 
 
 
 
 
 
 
6
 
7
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
- COPY . .
10
 
11
- EXPOSE 7860
12
 
13
- CMD ["shiny", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.11
2
 
3
  WORKDIR /code
4
 
5
+ RUN apt-get update
6
+ RUN apt-get install python3.10 -y
7
+ RUN apt-get install python-is-python3 -y
8
+ RUN apt-get install pip -y
9
+ RUN apt-get install git -y
10
+ RUN apt-get install curl -y
11
+ RUN apt-get install wget -y
12
+ RUN apt-get install ffmpeg -y
13
 
14
+ RUN git clone git@github.com:yinhw0210/dataAnalysis-backend.git .
15
 
16
+ RUN pip install -r requirements.txt
17
 
18
+ RUN chmod +x deploy.sh
19
 
20
+ CMD ["./deploy.sh", "7860", "0.0.0.0"]