Update README.MD

Added how to pass command line arguments in the Dockerfile
This commit is contained in:
amnesiacsardine 2022-07-16 13:22:31 +02:00 committed by GitHub
parent a5d326b679
commit fa88bce917
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,6 +143,13 @@ services:
volumes: volumes:
- ./microbin-data:/usr/local/bin/pasta_data - ./microbin-data:/usr/local/bin/pasta_data
``` ```
To pass command line arguments you must edit the Dockerfile and change the CMD line. In this example we add the syntax highlighting option and enable private pastas:
```
CMD ["microbin", "--highlightsyntax", "--private"]
```
You then need to rebuild the image and recreate your container.
**Note:** If you are getting the following error about domain name resolution: **Note:** If you are getting the following error about domain name resolution: