workspace / Dockerfile
bjo163's picture
Create Dockerfile
9a3085b verified
Raw History Blame Contribute Delete
352 Bytes
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"]