Spaces:
Sleeping
Sleeping
nam pham
commited on
Commit
·
9925b58
1
Parent(s):
ccc883e
chore: update branch Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
|
| 3 |
RUN apt update && apt install -y default-jdk
|
| 4 |
|
|
@@ -13,7 +13,7 @@ ENV PIPENV_VENV_IN_PROJECT=1
|
|
| 13 |
WORKDIR $HOME/app
|
| 14 |
|
| 15 |
RUN --mount=type=secret,id=GITLAB_CREDENTIALS,mode=0444,required=true \
|
| 16 |
-
git clone "https://oauth2:$(cat /run/secrets/GITLAB_CREDENTIALS)@gitlab.com/bookingcare/search.git" -b
|
| 17 |
RUN python -m pip install --upgrade pip
|
| 18 |
RUN pip install --user pipenv
|
| 19 |
RUN echo 'export PATH="/home/user/.local/bin:$PATH"' >> $HOME/.bashrc
|
|
@@ -21,4 +21,4 @@ RUN . $HOME/.bashrc
|
|
| 21 |
RUN pipenv install
|
| 22 |
|
| 23 |
EXPOSE 7860
|
| 24 |
-
CMD ["sh", "bin/hf-api-start.sh"]
|
|
|
|
| 1 |
+
fROM python:2.11.9
|
| 2 |
|
| 3 |
RUN apt update && apt install -y default-jdk
|
| 4 |
|
|
|
|
| 13 |
WORKDIR $HOME/app
|
| 14 |
|
| 15 |
RUN --mount=type=secret,id=GITLAB_CREDENTIALS,mode=0444,required=true \
|
| 16 |
+
git clone "https://oauth2:$(cat /run/secrets/GITLAB_CREDENTIALS)@gitlab.com/bookingcare/search.git" -b newt_v17/nam1 .
|
| 17 |
RUN python -m pip install --upgrade pip
|
| 18 |
RUN pip install --user pipenv
|
| 19 |
RUN echo 'export PATH="/home/user/.local/bin:$PATH"' >> $HOME/.bashrc
|
|
|
|
| 21 |
RUN pipenv install
|
| 22 |
|
| 23 |
EXPOSE 7860
|
| 24 |
+
CMD ["sh", "bin/hf-api-start.sh"]
|