Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
ChenyuRabbitLove
commited on
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -17,9 +17,10 @@ ENV HOME=/home/user \
|
|
17 |
|
18 |
WORKDIR $HOME/app
|
19 |
|
20 |
-
RUN
|
|
|
21 |
|
22 |
-
RUN pip install --no-cache-dir --upgrade -r $HOME/
|
23 |
|
24 |
RUN --mount=type=secret,id=PASSWORD,mode=0444,required=true \
|
25 |
export PASSWORD=$(cat /run/secrets/PASSWORD) && \
|
@@ -74,4 +75,4 @@ RUN --mount=type=secret,id=AWS_REGION_NAME,mode=0444,required=true \
|
|
74 |
echo "export AWS_REGION_NAME=${AWS_REGION_NAME}" >> $HOME/.bashrc
|
75 |
|
76 |
|
77 |
-
CMD ["python", "
|
|
|
17 |
|
18 |
WORKDIR $HOME/app
|
19 |
|
20 |
+
RUN --mount=type=secret,id=GITHUB_PAT,mode=0444,required=true \
|
21 |
+
git clone https://oauth2:$(cat /run/secrets/GITHUB_PAT)@github.com/junyiacademy/vaitor.git $HOME/app
|
22 |
|
23 |
+
RUN pip install --no-cache-dir --upgrade -r $HOME/vaitor/requirements.txt
|
24 |
|
25 |
RUN --mount=type=secret,id=PASSWORD,mode=0444,required=true \
|
26 |
export PASSWORD=$(cat /run/secrets/PASSWORD) && \
|
|
|
75 |
echo "export AWS_REGION_NAME=${AWS_REGION_NAME}" >> $HOME/.bashrc
|
76 |
|
77 |
|
78 |
+
CMD ["python", "app.py"]
|