Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
|
@@ -38,17 +38,18 @@ RUN mkdir -p /root/.ssh && \
|
|
| 38 |
ssh-keyscan github.com >> /root/.ssh/known_hosts
|
| 39 |
|
| 40 |
# Clone private repo into a folder
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
|
|
|
| 44 |
|
| 45 |
# ============================================
|
| 46 |
|
| 47 |
-
WORKDIR /app/
|
| 48 |
|
| 49 |
# Switch to non-root user
|
| 50 |
USER appuser
|
| 51 |
|
| 52 |
EXPOSE 8000
|
| 53 |
|
| 54 |
-
CMD ["sh", "/app/
|
|
|
|
| 38 |
ssh-keyscan github.com >> /root/.ssh/known_hosts
|
| 39 |
|
| 40 |
# Clone private repo into a folder
|
| 41 |
+
|
| 42 |
+
RUN git clone git@github.com:Sisyetad/creative_mind.git /app/CreativeMind && \
|
| 43 |
+
chown -R appuser:appgroup /app/CreativeMind/ProblemSolution && \
|
| 44 |
+
chmod +x /app/CreativeMind/ProblemSolution/entrypoint.sh
|
| 45 |
|
| 46 |
# ============================================
|
| 47 |
|
| 48 |
+
WORKDIR /app/CreativeMind/ProblemSolution
|
| 49 |
|
| 50 |
# Switch to non-root user
|
| 51 |
USER appuser
|
| 52 |
|
| 53 |
EXPOSE 8000
|
| 54 |
|
| 55 |
+
CMD ["sh", "/app/CreativeMind/ProblemSolution/entrypoint.sh"]
|