Using a Dockerfile, Saving and Image, and Using the Interactive Terminal
Cheatsheet and Simple Guide using NGINX
2 min readApr 20, 2022
--
Let’s create a Dockerfile. We will use docker image build
to build this Dockerfile:
FROM alpine:latest
LABEL maintainer=”Russ McKendrick <russ@mckendrick.io>”
LABEL description=”This example Dockerfile installs NGINX.”
RUN apk add --update nginx && \
rm -rf /var/cache/apk/* && \
mkdir -p /tmp/nginx/
COPY files/nginx.conf /etc/nginx/nginx.conf
COPY files/default.conf /etc/nginx/conf.d/default.conf ADD…