From e03bc9a81c4a91a80abe92996093fd35b0d8afd1 Mon Sep 17 00:00:00 2001 From: Massimiliano Lincetto Date: Tue, 18 Oct 2022 17:08:23 +0200 Subject: [PATCH 1/2] embryonic dockerfile --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..64529baf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM debian:bullseye-slim + +ENV INSTALL_DIR /flarestack + +RUN apt-get update && apt-get dist-upgrade -y +RUN apt-get install python3 python3-pip -y + +RUN python3 -m pip install poetry + +ADD . ${INSTALL_DIR} + +RUN cd ${INSTALL_DIR} && poetry install + +# this still fails due to lack fo sphinx-build executable +# RUN cd ${INSTALL_DIR} && poetry install --with docs +# RUN cd ${INSTALL_DIR} && sphinx-build -b html docs/source/ docs/build/html + +# 'sh -c' allows variable expansion +CMD ["sh", "-c", "cd ${INSTALL_DIR} && poetry run python3 -m unittest discover"] \ No newline at end of file From 18fcc5657367e39c3d99c914554f18c6422dfee7 Mon Sep 17 00:00:00 2001 From: Massimiliano Lincetto Date: Tue, 18 Oct 2022 17:09:48 +0200 Subject: [PATCH 2/2] EOL newline --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 64529baf..52d1b497 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,4 @@ RUN cd ${INSTALL_DIR} && poetry install # RUN cd ${INSTALL_DIR} && sphinx-build -b html docs/source/ docs/build/html # 'sh -c' allows variable expansion -CMD ["sh", "-c", "cd ${INSTALL_DIR} && poetry run python3 -m unittest discover"] \ No newline at end of file +CMD ["sh", "-c", "cd ${INSTALL_DIR} && poetry run python3 -m unittest discover"]