Code-Server_IDE / Dockerfile
NitinBot002's picture
Update Dockerfile
e6d42f7 verified
raw
history blame
550 Bytes
FROM python:3.10-slim
# Coder server needs Docker CLI to launch workspaces
RUN apt-get update \
&& apt-get install -y curl docker.io ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Add a non-root user matching Coder docs
RUN useradd -m -u 1000 coder
USER coder
ENV HOME=/home/coder PATH=/home/coder/.local/bin:$PATH
WORKDIR /home/coder
# Install Coder CLI
RUN curl -fsSL https://coder.com/install.sh | sh
# Expose Coder server default port
EXPOSE 3000
# Launch the Coder server
CMD ["coder", "server", "--host", "0.0.0.0", "--port", "7860"]