We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8d9813 commit 25cae6aCopy full SHA for 25cae6a
nginx/assignment4.md
@@ -0,0 +1,19 @@
1
+## Running nginx read only
2
+* Use your nginx image
3
+* Run the nginx container with the read-only flag
4
+* Use a tmpfs where needed
5
+
6
+## The Dockerfile
7
+```
8
+FROM debian:buster-slim
9
10
+RUN apt-get update \
11
+ && apt-get install -y nginx \
12
+ && rm -rf /var/lib/apt/lists/* \
13
+ && rm /var/log/nginx/access.log \
14
+ && rm /var/log/nginx/error.log \
15
+ && ln -s /dev/stdout /var/log/nginx/access.log \
16
+ && ln -s /dev/stderr /var/log/nginx/error.log
17
18
+CMD ["/usr/sbin/nginx", "-g", "daemon off;"]
19
0 commit comments