From ca41f7a5f3448d815fa6c80883169603c10d5507 Mon Sep 17 00:00:00 2001 From: tdeerenberg Date: Sun, 16 Apr 2023 21:05:39 +0200 Subject: [PATCH] Reupload dockerfile with credits to author Co-authored-by: Pypeaday <32268273+pypeaday@users.noreply.github.com> --- dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 dockerfile diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..18100bb --- /dev/null +++ b/dockerfile @@ -0,0 +1,17 @@ +FROM python:3.10-slim + +# Probably should do update/upgrade for any CVEs + +WORKDIR / +# Set up requirements +COPY requirements.txt requirements.txt +# hadolint ignore=DL3013 +RUN python3 -m pip install pip --upgrade --no-cache-dir && \ + python3 -m pip install -r requirements.txt --no-cache-dir + +# Copy in code +COPY ./src/musort-docker.py /musort.py + +# docker run --name musort --rm -it musort --help +ENTRYPOINT ["python3", "/musort.py"] +