FROM ghcr.io/coder/coder:latest # Set environment variables ENV CODER_DATA=/home/coder/.config # Create the necessary directory RUN mkdir -p $CODER_DATA # Copy docker.sock from host VOLUME /var/run/docker.sock:/var/run/docker.sock # Command to start the container CMD ["sh", "-c", "groupadd -g $(getent group docker | cut -d: -f3) coder && coder"]