Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +2 -6
Dockerfile
CHANGED
|
@@ -8,11 +8,9 @@ RUN apt-get update && apt-get install -y git ca-certificates && rm -rf /var/lib/
|
|
| 8 |
|
| 9 |
# Accept GitHub token as build argument
|
| 10 |
ARG GITHUB_TOKEN
|
| 11 |
-
ARG GIT_USER
|
| 12 |
-
ARG GIT_REPO
|
| 13 |
|
| 14 |
# Clone private repo (token not stored in final image)
|
| 15 |
-
RUN git clone https://${GITHUB_TOKEN}@github.com/
|
| 16 |
cp -r /tmp/repo/* . && \
|
| 17 |
rm -rf /tmp/repo .git
|
| 18 |
|
|
@@ -27,7 +25,5 @@ EXPOSE 7860
|
|
| 27 |
ENV PORT=7860
|
| 28 |
ENV NODE_ENV=production
|
| 29 |
ENV GITHUB_TOKEN=""
|
| 30 |
-
ENV GIT_USER=""
|
| 31 |
-
ENV GIT_REPO=""
|
| 32 |
|
| 33 |
-
CMD ["node", "server.js"]
|
|
|
|
| 8 |
|
| 9 |
# Accept GitHub token as build argument
|
| 10 |
ARG GITHUB_TOKEN
|
|
|
|
|
|
|
| 11 |
|
| 12 |
# Clone private repo (token not stored in final image)
|
| 13 |
+
RUN git clone https://${GITHUB_TOKEN}@github.com/Walukapah/SRIAPI26.git /tmp/repo && \
|
| 14 |
cp -r /tmp/repo/* . && \
|
| 15 |
rm -rf /tmp/repo .git
|
| 16 |
|
|
|
|
| 25 |
ENV PORT=7860
|
| 26 |
ENV NODE_ENV=production
|
| 27 |
ENV GITHUB_TOKEN=""
|
|
|
|
|
|
|
| 28 |
|
| 29 |
+
CMD ["node", "server.js"]
|