Skip to content

Commit b9facfb

Browse files
committed
Add the first assignment for nginx
[refs #3be405c411fe]
1 parent 39d19a0 commit b9facfb

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

nginx/assignment1.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Base image (FROM)
2+
debian:buster-slim
3+
4+
## Run the following commands (RUN)
5+
apt-get update
6+
apt-get install -y nginx
7+
8+
## Startup command (CMD)
9+
nginx -g 'daemon off;'
10+
11+
## Build the image
12+
* Tag it with <docker_id>/nginx:latest
13+
* Push it to Docker Hub
14+
15+
## Verify the image works
16+
* Start a container
17+
* Expose port 80
18+
* Use a browser
19+
20+
## Stop the container
21+
docker container kill <CONTAINER NAME>
22+
docker container ls

0 commit comments

Comments
 (0)