# start from an existing image
FROM alpine

# run this command in the guest system (package installation)
RUN apk add --no-cache tini postgresql-client

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

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

# help the shell process to terminate when requested
ENTRYPOINT ["/sbin/tini", "-g", "--"]

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