image_ai / Dockerfile
shashwatIDR's picture
Create Dockerfile
fa15271 verified
raw
history blame
584 Bytes
FROM codercom/code-server:latest
# Install Python and Node.js
RUN sudo apt-get update && \
sudo apt-get install -y python3 python3-pip curl && \
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - && \
sudo apt-get install -y nodejs
# Setup working directory
WORKDIR /home/coder/project
# Add your files
COPY . /home/coder/project
# Install Python requirements if any
RUN pip3 install -r requirements.txt || true
# Set password (optional)
ENV PASSWORD=hfspace
# Expose for HF Spaces
EXPOSE 7860
CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "."]