From 91b207b85baa70a3cd6f4bfc833ec9b5a5e366da Mon Sep 17 00:00:00 2001 From: Dara Keon Date: Mon, 3 Jul 2023 23:40:33 +0100 Subject: [PATCH] midna: create docker machine to run --- publish/Makefile | 6 ++++++ publish/dfm-midna.dockerfile | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100755 publish/dfm-midna.dockerfile diff --git a/publish/Makefile b/publish/Makefile index d599a20339..473f9a033e 100644 --- a/publish/Makefile +++ b/publish/Makefile @@ -12,6 +12,12 @@ site: site_push: site @make push MACHINE=site +midna: + @make single MACHINE=midna + +midna_push: midna + @make push MACHINE=midna + single: @echo "Building ${MACHINE}..." @docker build .. --pull --progress plain -t darakeon/dfm-${MACHINE} -f "${PWD}/dfm-${MACHINE}.dockerfile" diff --git a/publish/dfm-midna.dockerfile b/publish/dfm-midna.dockerfile new file mode 100755 index 0000000000..3029881c01 --- /dev/null +++ b/publish/dfm-midna.dockerfile @@ -0,0 +1,16 @@ +FROM darakeon/ubuntu +LABEL maintainer="Dara Keon " +RUN maintain + +RUN apt-get install -y python3 python3-pip default-libmysqlclient-dev + +COPY midna/src/requirements.txt requirements.txt +RUN python3 -m pip install -r requirements.txt + +COPY midna/src /var/midna/src + +EXPOSE 8627 + +WORKDIR /var/midna/src + +CMD gunicorn -c ../config/prod.py && tail -f /dev/null