Spaces:
Sleeping
Sleeping
# Use an official Node runtime as a parent image | |
FROM codercom/code-server:latest | |
# Switch to root user to install packages | |
USER root | |
# Install Python and other necessary packages | |
RUN apt update && apt install -y python3 python3-pip | |
# Set the working directory in the container | |
WORKDIR /app | |
# Expose the port code-server will run on | |
EXPOSE 8080 | |
# Configure code-server to run without authentication (not recommended for production, but suitable for a demo or personal use) | |
ENV PASSWORD="yourpassword" | |
# Command to run on container start | |
CMD ["code-server", "--auth", "none", "--port", "8080"] |