Bifrost deployed using ansible
This commit is contained in:
9
bifrost/app/.env
Normal file
9
bifrost/app/.env
Normal 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
14
bifrost/app/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user