File size: 596 Bytes
ed6f781
 
 
ca2e7c8
ed6f781
 
ca2e7c8
 
 
ed6f781
ca2e7c8
 
017e6d3
ca2e7c8
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Start from the official NyaProxy image
FROM k3scat/nya-proxy:latest

# Switch to the root user to create our writable directory
USER root

# Create a /data directory and give ownership to the 'nya' user,
# which we know exists inside the base image.
RUN mkdir /data && chown nya:nya /data

# Switch back to the non-root 'nya' user for security
USER nya

# IMPORTANT: Override the default command to point to the new config path.
# The original command was ["--config", "config.yaml"].
# We are changing it to use an absolute path to our writable directory.
CMD ["--config", "/data/config.yaml"]