Spaces:
Runtime error

File size: 352 Bytes
9a3085b
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"]