Spaces:
Sleeping
Sleeping
File size: 623 Bytes
4fc5a4c 46edc4a f8e03d8 16fe153 4fc5a4c 16fe153 4fc5a4c 16fe153 cb96eef | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | FROM codercom/code-server:latest
# Install Node.js 22 (required for gemini-cli)
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && \
sudo apt-get update && \
sudo apt-get install -y nodejs
# Install Gemini CLI globally (as root, so no EACCES issue)
RUN sudo npm install -g @google/gemini-cli
# Create Gemini config directory
RUN mkdir -p /home/coder/.gemini && sudo chown -R coder:coder /home/coder/.gemini
# Set environment variable for login password
ENV PASSWORD=ND@pr2013
# Expose the port used by code-server
EXPOSE 7860
# Start code-server
CMD ["--bind-addr", "0.0.0.0:7860", "."]
|