# start from an existing image
FROM alpine

# run this command in the guest system (package installation)
RUN apk add --no-cache nginx envsubst

# create a working directory and execute every remaining command from it
WORKDIR /mini_nginx

# copy the specified file(s) from the host to the working directory
COPY mini_nginx.sh .

# run this command by default (from the working directory)
CMD ["/bin/sh", "mini_nginx.sh"]
