Bifrost deployed using ansible

This commit is contained in:
tanshu
2020-05-04 17:04:09 +05:30
parent fc8a7795e6
commit 02cc1dafe5
7 changed files with 164 additions and 2 deletions

9
bifrost/app/.env Normal file
View File

@ -0,0 +1,9 @@
API_URL_BASE=https://api.digitalocean.com/v2
API_TOKEN=daf49849af95f3a06e5e235d8ae8a56c25cf35c0c5ab4b88baa559aac45d8bb5
HTPASSWD=/app/.htpasswd
HOST=0.0.0.0
PORT=80
LOG_LEVEL=info
DEBUG=true
MODULE_NAME=bifrost.main

14
bifrost/app/Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM python:latest
LABEL maintainer="Amritanshu <docker@tanshu.com>"
RUN git clone https://git.tanshu.com/tanshu/bifrost.git /app && pip install --no-cache-dir --requirement /app/requirements.txt && pip install /app
COPY ./.env /app
WORKDIR /app/
ENV PYTHONPATH=/app
EXPOSE 80
CMD ["python", "-m", "bifrost"]