Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -5,7 +5,6 @@ RUN apt-get update && apt-get install -y \
|
|
| 5 |
gcc g++ make nano zip unzip \
|
| 6 |
&& rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
-
# Version specify karke install karo
|
| 9 |
RUN curl -fsSL https://opencode.ai/install | bash -s -- --version 1.0.182
|
| 10 |
|
| 11 |
USER root
|
|
@@ -20,7 +19,8 @@ ENV OPENCODE_SERVER_PASSWORD=${HF_PASSWORD}
|
|
| 20 |
|
| 21 |
EXPOSE 7860
|
| 22 |
|
|
|
|
| 23 |
CMD ["bash", "-c", \
|
| 24 |
"git config --global user.email 'badal@example.com' && \
|
| 25 |
git config --global user.name 'Badal' && \
|
| 26 |
-
opencode web --port 7860 --hostname 0.0.0.0"]
|
|
|
|
| 5 |
gcc g++ make nano zip unzip \
|
| 6 |
&& rm -rf /var/lib/apt/lists/*
|
| 7 |
|
|
|
|
| 8 |
RUN curl -fsSL https://opencode.ai/install | bash -s -- --version 1.0.182
|
| 9 |
|
| 10 |
USER root
|
|
|
|
| 19 |
|
| 20 |
EXPOSE 7860
|
| 21 |
|
| 22 |
+
# Direct path se opencode call karo
|
| 23 |
CMD ["bash", "-c", \
|
| 24 |
"git config --global user.email 'badal@example.com' && \
|
| 25 |
git config --global user.name 'Badal' && \
|
| 26 |
+
/root/.local/bin/opencode web --port 7860 --hostname 0.0.0.0"]
|