Spaces:
Sleeping
Sleeping
gemini cli changes
Browse files- Dockerfile +22 -5
Dockerfile
CHANGED
|
@@ -1,14 +1,31 @@
|
|
| 1 |
FROM codercom/code-server:latest
|
| 2 |
|
| 3 |
-
# Install
|
| 4 |
RUN sudo apt-get update && \
|
| 5 |
-
sudo apt-get install -y
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
# Set environment variable for login password
|
| 8 |
ENV PASSWORD=ND@pr2013
|
| 9 |
|
| 10 |
-
# Expose the port
|
| 11 |
EXPOSE 7860
|
| 12 |
|
| 13 |
-
#
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM codercom/code-server:latest
|
| 2 |
|
| 3 |
+
# Install dependencies
|
| 4 |
RUN sudo apt-get update && \
|
| 5 |
+
sudo apt-get install -y curl apt-transport-https ca-certificates gnupg && \
|
| 6 |
+
curl -sSL https://sdk.cloud.google.com | bash && \
|
| 7 |
+
echo "source /root/google-cloud-sdk/path.bash.inc" >> /root/.bashrc && \
|
| 8 |
+
/root/google-cloud-sdk/install.sh --quiet && \
|
| 9 |
+
sudo apt-get clean
|
| 10 |
+
|
| 11 |
+
# Add Google Cloud SDK to PATH
|
| 12 |
+
ENV PATH="/root/google-cloud-sdk/bin:${PATH}"
|
| 13 |
+
|
| 14 |
+
# Install Node.js & npm (needed for Gemini CLI extras)
|
| 15 |
+
RUN sudo apt-get install -y nodejs npm && \
|
| 16 |
+
npm install -g @google/generative-ai-cli
|
| 17 |
|
| 18 |
# Set environment variable for login password
|
| 19 |
ENV PASSWORD=ND@pr2013
|
| 20 |
|
| 21 |
+
# Expose the port for code-server
|
| 22 |
EXPOSE 7860
|
| 23 |
|
| 24 |
+
# Authentication step: user will need to run inside the container
|
| 25 |
+
# gcloud auth login
|
| 26 |
+
# gemini auth login
|
| 27 |
+
# These will open a browser link to authenticate with Google
|
| 28 |
+
# You can also mount a service account JSON file for automation.
|
| 29 |
+
|
| 30 |
+
# Start code-server by default
|
| 31 |
+
CMD ["--bind-addr", "0.0.0.0:7860", "."]
|