FROM python:3.9-alpine

RUN apk add gcc libc-dev libffi-dev g++ postgresql-dev

WORKDIR /usr/src/app

# COPY requirements.txt ./
COPY . .
RUN pip install --no-cache-dir -r requirements.txt

EXPOSE 5000

#ENV FLASK_RUN_HOST=0.0.0.0
#ENV FLASK_RUN_PORT=5000
#ENV HYDRA_ADMIN_URL=http://localhost:4445
#ENV KRATOS_PUBLIC_URL=http://localhost:8080
#ENV KRATOS_ADMIN_URL=http://localhost:8000
#ENV DATABASE_URL="postgresql://stackspin:stackspin@localhost/stackspin"
#ENV APP_SETTINGS="config.DevelopmentConfig"

CMD [ "flask", "run" ]