Update Dockerfile
Browse files- Dockerfile +1 -3
Dockerfile
CHANGED
|
@@ -15,14 +15,12 @@ ENV GITHUB_TOKEN=${GITHUB_TOKEN}
|
|
| 15 |
RUN apt-get update && apt-get install -y git
|
| 16 |
# Expose the secret SECRET_EXAMPLE at buildtime and use its value as git remote URL
|
| 17 |
|
| 18 |
-
# Expose the secret SECRET_EXAMPLE at buildtime and use its value as git remote URL
|
| 19 |
-
|
| 20 |
RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \
|
| 21 |
git clone -b spaceHF/cuong1 https://$(cat /run/secrets/GITHUB_TOKEN):x-oauth-basic@github.com/TheCuongt65/snake.git .
|
| 22 |
|
| 23 |
# Cài đặt thư viện Python từ Pipfile.lock
|
| 24 |
RUN pip install --no-cache-dir pipenv
|
| 25 |
-
RUN pipenv install
|
| 26 |
|
| 27 |
# Mở cổng 7860 (Spaces yêu cầu)
|
| 28 |
EXPOSE 7860
|
|
|
|
| 15 |
RUN apt-get update && apt-get install -y git
|
| 16 |
# Expose the secret SECRET_EXAMPLE at buildtime and use its value as git remote URL
|
| 17 |
|
|
|
|
|
|
|
| 18 |
RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \
|
| 19 |
git clone -b spaceHF/cuong1 https://$(cat /run/secrets/GITHUB_TOKEN):x-oauth-basic@github.com/TheCuongt65/snake.git .
|
| 20 |
|
| 21 |
# Cài đặt thư viện Python từ Pipfile.lock
|
| 22 |
RUN pip install --no-cache-dir pipenv
|
| 23 |
+
RUN pipenv install
|
| 24 |
|
| 25 |
# Mở cổng 7860 (Spaces yêu cầu)
|
| 26 |
EXPOSE 7860
|