See social network users cryptocurrency addresses and balances. Powered by transparent blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
765 B

FROM python:3-alpine AS base
# Image to Build Dependencies
FROM base AS builder
COPY ./requirements.txt /app
# Build Dependencies
RUN apk add gcc musl-dev libffi-dev openssl-dev libxml2-dev libxslt-dev file llvm-dev make g++
RUN apk add mariadb
# Python Dependencies
RUN pip install --no-cache-dir --prefix=/install gunicorn
RUN pip install --prefix=/install -r requirements.txt
# Runtime Environment Image
FROM base
# Runtime Dependencies
RUN apk add libxml2 libxslt
RUN apk add --update docker openrc
RUN rc-update add docker boot
COPY --from=builder /install /usr/local
COPY . /app/
RUN mkdir -p ./data/db
CMD gunicorn iseeyourcash:app -b -w 4 --worker-class sanic.worker.GunicornWorker