Skip to content

Commit

Permalink
midna: create docker machine to run
Browse files Browse the repository at this point in the history
  • Loading branch information
darakeon committed Jul 3, 2023
1 parent 8223328 commit 91b207b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions publish/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
16 changes: 16 additions & 0 deletions publish/dfm-midna.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM darakeon/ubuntu
LABEL maintainer="Dara Keon <laboon@darakeon.com>"
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

0 comments on commit 91b207b

Please sign in to comment.